mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-02-23 03:28:18 +00:00
add shared pkg
This commit is contained in:
parent
4532a25489
commit
97883a6d14
17
shared/main.go
Normal file
17
shared/main.go
Normal 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))
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user