cgo的指针传递

11-14 848 views

https://segmentfault.com/a/1190000013590585
阅读全文 0

如何让自定义类型(string)在xml.Marshal下生成CDATA格式

10-13 961 views

https://segmentfault.com/q/1010000008231680
阅读全文 0

golang 动态创建 struct

9-21 1,809 views

引用 package main import ( "fmt" "reflect" "github.com/boringwork/godemo/class/stu" ) var typeRegistry = make(map[string]reflect.Ty...
阅读全文 0

Golang使用pkg-config自动获取头文件和链接库的方法

9-04 731 views

Golang使用pkg-config自动获取头文件和链接库的方法 为了能够重用已有的C语言库,我们在使用Golang开发项目或系统的时候难免会遇到Go和C语言混合编程,这时...
阅读全文 0

ld: symbol(s) not found for architecture x86_64

9-03 1,613 views

https://www.jianshu.com/p/3232263a3da3 增加依赖库解决 #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework Cocoa -framework OpenGL
阅读全文 0

how to use cpp in go

7-15 855 views

https://stackoverflow.com/questions/1713214/how-to-use-c-in-go
阅读全文 0

golang init函数

5-30 2,309 views

golang init函数 init函数有一下几点特性: init函数在main执行之前,自动被调用执行的,不能显示调用 每个包的init函数在包被引用时,自动被调用 每个包可以...
阅读全文 11

Cgo

5-13 1,947 views

https://github.com/golang/go/wiki/cgo Introduction First, http://golang.org/cmd/cgo is the primary cgo documentation. There is also a good introdu...
阅读全文 7

macos Delve could not launch process: EOF

4-06 1,132 views

macos Delve could not launch process: EOF I have a workaround. sudo rm -rf /Library/Developer/CommandLineTools Go to https://developer.apple.com/d...
阅读全文 0

golang hide-console-window

1-23 29,560 views

Windows go build -ldflags -H=windowsgui main.go https://stackoverflow.com/questions/36727740/how-to-hide-console-window-of-a-go-program-on-windows...
阅读全文 25