mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-19 02:42:50 +00:00
18 lines
285 B
Go
18 lines
285 B
Go
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))
|
|
}
|