add shared pkg

This commit is contained in:
Andrea Franz 2021-10-15 10:35:09 +02:00
parent 4532a25489
commit 97883a6d14
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D

17
shared/main.go Normal file
View File

@ -0,0 +1,17 @@
package main
// #cgo LDFLAGS: -shared
import "C"
import (
"fmt"
statuskeycardgo "github.com/status-im/status-keycard-go"
)
func main() {}
//export HelloWorld
func HelloWorld() *C.char {
res := statuskeycardgo.HelloWorld()
return C.CString(fmt.Sprintf("shared lib: %s", res))
}