mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2025-12-24 12:57:52 +08:00
19 lines
266 B
Go
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))
|
|
}
|