Created
June 11, 2019 17:43
-
-
Save Heavyblade/54de63df35346ec4e247ef8ef11e057c to your computer and use it in GitHub Desktop.
hello_dll.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "C" | |
func main() {} | |
//export SayHello | |
func SayHello(message *C.char) *C.char { | |
goMessage := C.GoString(message) | |
return C.CString("hello " + goMessage) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment