github.com/goplus/llgo@v0.8.3/cl/_testpy/callpy/in.go (about) 1 package main 2 3 import ( 4 "github.com/goplus/llgo/c" 5 "github.com/goplus/llgo/py" 6 "github.com/goplus/llgo/py/math" 7 "github.com/goplus/llgo/py/os" 8 ) 9 10 func main() { 11 x := math.Sqrt(py.Float(2)) 12 wd := os.Getcwd() 13 c.Printf(c.Str("sqrt(2) = %f\n"), x.Float64()) 14 c.Printf(c.Str("cwd = %s\n"), wd.CStr()) 15 }