Files
openp2p/lib/openp2p.go
TenderIronh 9c3d557f5d LF
2024-07-26 22:27:24 +08:00

19 lines
266 B
Go

package main
// On Windows env
// cd lib
// go build -o openp2p.dll -buildmode=c-shared openp2p.go
// caller example see example/dll
import (
op "openp2p/core"
)
import "C"
func main() {
}
//export RunCmd
func RunCmd(cmd *C.char) {
op.RunCmd(C.GoString(cmd))
}