摘要: 1、golang链接c静态库的方法可以见这个示例: https://github.com/atercattus/go-static-link-example https://github.com/shadowmint/go-static-linking https://github.com/Alek 阅读全文
posted @ 2018-04-15 22:54 微信公众号--共鸣圈 阅读(3578) 评论(0) 推荐(0) 编辑
摘要: 下面这两种方法都需要手动删除package的源码目录。 1、手动删除 It's safe to just delete the source directory and compiled package file. Find the source directory under $GOPATH/sr 阅读全文
posted @ 2018-04-15 16:12 微信公众号--共鸣圈 阅读(37946) 评论(0) 推荐(1) 编辑
摘要: GOPATH可以设置多个工程目录,linux下用冒号分隔(必须用冒号,fish shell的空格分割会出错),windows下用分号分隔,但是go get 只会下载pkg到第一个目录,但是编译的时候会搜索所有的目录。 在fish shell下,使用 set -x GOPATH "PATH1:PATH 阅读全文
posted @ 2018-04-15 12:04 微信公众号--共鸣圈 阅读(584) 评论(0) 推荐(0) 编辑