go-python / gopy

gopy generates a CPython extension module from a go package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example not working on go1.18

icexin opened this issue · comments

I followed the build steps in README with go1.18. After the building process, this is no function in out/hi.py, just an empty py file with some setup code. When i switch to go.15, everything works ok.

commented

@icexin 这个工具依赖于golang.org/x/tools/go/packages,升级一下golang.org/x/tools就可以用了

#275

gopy/gen.go

Line 111 in 2eb22ac

bpkgs, err := packages.Load(&packages.Config{Mode: packages.LoadTypes}, path)

Thanks!