![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
go
Jum_Summer
这个作者很懒,什么都没留下…
展开
-
golang的aes, ecb加解密
参考链接:https://www.cnblogs.com/techone/p/11771928.html原创 2020-12-30 14:53:04 · 1040 阅读 · 0 评论 -
golang调用c++代码出现undefined reference to symbol ‘XX@@GLIBC_2.2.5‘
golang调用C++代码时,部分实现的底层函数,floor, log,exp等出现异常,如下/usr/bin/ld: xxxxx.a: undefined reference to symbol 'floor@@GLIBC_2.2.5'/usr/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line/lib64/libm.so原创 2020-11-16 18:14:44 · 2657 阅读 · 0 评论 -
linux安装libsoxr
1. 先说说为什么需要安装libsoxr为了用golang对pcm数据进行重采样,需要go getgithub.com/zaf/resample库,然而这个是依赖于libsoxr,否则会报错找不到soxr.h2.解决方案1.下载soxr库,并上传至linux的/usr/include/soxr中解压链接:https://github.com/chirlu/soxr2.解压完成后,将src文件中的soxr.h文件复制到/usr/include/,随后执行cmake ./ma..原创 2020-11-09 16:41:01 · 974 阅读 · 2 评论 -
golang踩坑记
这里记录在用golang搭建http服务时,遇到的一些坑坑1: json格式返回空{}在返回json格式时,发现不论怎样赋值最终的返回都为空,百度一番,才发现json里面的变量的首字母需要大写,解决方案:type RESULT struct{ Name string `json:"name"` Result string `json:"result"` Length string `json:"length"` Ret string `json:"ret".原创 2020-07-21 10:29:10 · 291 阅读 · 0 评论 -
linux安装go以及配置环境
最近搭建服务需要用到go来搭建,之前一直都是在别人搭好的环境下搞,但是由于这次用的时候出现了版本不一致的问题,如下:# errorscompile: version "go1.12.4" does not match go tool version "go1.12.7"# runtime/internal/syscompile: version "go1.12.4" does not match go tool version "go1.12.7"# internal/racecompile原创 2020-07-10 11:33:43 · 823 阅读 · 0 评论