mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-31 16:46:23 +00:00
18 lines
260 B
Go
18 lines
260 B
Go
|
package main
|
||
|
|
||
|
/*
|
||
|
#cgo LDFLAGS: -L ../../build/libkeycard -lkeycard
|
||
|
#include "../../build/libkeycard/libkeycard.h"
|
||
|
extern char* HelloWorld();
|
||
|
*/
|
||
|
import "C"
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
res := C.HelloWorld()
|
||
|
fmt.Printf("result: %+v\n", C.GoString(res))
|
||
|
}
|