package main
import(
)
/*
#include
*/
import "C"
func main() {
C.printf(C.CString("hello"))
}
//>build this file with go build, i got
//./testems.go:12:2: unexpected type: ...
could someone help me with this trouble? thanks!
--
You received this message because you are subscribed to th
Hi,
I got a panic when i run my test code
my go version is 'go version go1.12 linux/amd64'
panic: reflect: call of reflect.Value.Type on zero Value
goroutine 6 [running]:
reflect.Value.Type(0x0, 0x0, 0x0, 0x4db0c0, 0xc183d0)
/usr/local/go/src/reflect/value.go:1813 +0x169
internal/fmts