github.com/goplus/llgo@v0.8.3/cl/_testrt/cstr/in.go (about) 1 package main 2 3 import _ "unsafe" 4 5 //go:linkname cstr llgo.cstr 6 func cstr(string) *int8 7 8 //go:linkname printf C.printf 9 func printf(format *int8, __llgo_va_list ...any) 10 11 func main() { 12 printf(cstr("Hello, world\n")) 13 }