ebbf499208
this prepares for more test binaries.
15 lines
230 B
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())
|
|
}
|