1
Fork 0
hermetic_cc_toolchain/test/go/hello.go

15 lines
230 B
Go

package main
// #include <stdio.h>
// char* hello() { return "hello, world"; }
// void printhello() { printf("%s\n", hello()); }
import "C"
func main() {
C.printhello()
}
func Chello() string {
return C.GoString(C.hello())
}