test: move cgo demo into _testgo, and make links
This commit is contained in:
1
_demo/cgopython
Symbolic link
1
_demo/cgopython
Symbolic link
@@ -0,0 +1 @@
|
||||
../cl/_testgo/cgopython
|
||||
@@ -1,13 +0,0 @@
|
||||
package main
|
||||
|
||||
/*
|
||||
#cgo pkg-config: python3-embed
|
||||
#include <Python.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
func main() {
|
||||
C.Py_Initialize()
|
||||
defer C.Py_Finalize()
|
||||
C.PyRun_SimpleString(C.CString("print('Hello, Python!')"))
|
||||
}
|
||||
Reference in New Issue
Block a user