调用时就会报这样的错,无法正常读取
panic: runtime error: cgo result has Go pointer
goroutine 17 [running, locked to thread]:
main._cgoexpwrap_fd0f1cf0a105_GoAdd.func1(0xc420040e98)
command-line-arguments/_obj/_cgo_gotypes.go:46 +0x6e
main._cgoexpwrap_fd0f1cf0a105_GoAdd(0x4028000000000000, 0x4041333333333333, 0xc4200a2020, 0x3, 0x4)
command-line-arguments/_obj/_cgo_gotypes.go:48 +0x9d
我试了很多方法,每次只能收到第一个值。我估计我的方法不对,各位有类似应用的经验吗?