init: v1.0.0
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// +build go1.10
|
||||
|
||||
package main
|
||||
|
||||
//void SayHello(_GoString_ s);
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main() {
|
||||
C.SayHello("Hello, World\n")
|
||||
}
|
||||
|
||||
//export SayHello
|
||||
func SayHello(s string) {
|
||||
fmt.Print(s)
|
||||
}
|
||||
Reference in New Issue
Block a user