Aller Anfang ist schwer.
This commit is contained in:
commit
16f964f41d
5 changed files with 74 additions and 0 deletions
12
libmxclient/mxclientlib.go
Normal file
12
libmxclient/mxclientlib.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package main
|
||||
|
||||
import "C"
|
||||
|
||||
//export hello
|
||||
func hello(name *C.char) *C.char {
|
||||
goName := C.GoString(name)
|
||||
result := "Hello " + goName
|
||||
return C.CString(result)
|
||||
}
|
||||
|
||||
func main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue