go-cms icon indicating copy to clipboard operation
go-cms copied to clipboard

clone下来后go run main.go依赖helpers报错

Open chengdukm opened this issue 4 years ago • 3 comments

C:\Users\admin\Desktop\go-cms>go run main.go go: downloading github.com/xiya-team/helpers v1.0.5 go: extracting github.com/xiya-team/helpers v1.0.5 go: finding github.com/xiya-team/helpers v1.0.5

github.com/xiya-team/helpers

D:\gopath\pkg\mod\github.com\xiya-team\[email protected]\directory.go:23:22: cannot use fd (type int) as type syscall.Handle in argument to syscall.Close

chengdukm avatar Mar 10 '20 14:03 chengdukm

请用最新helpers版本

xiya-vip avatar Mar 23 '20 03:03 xiya-vip

1.0.6版本最新了,还是报这个错 go version go1.14.1 windows/amd64

xul0038 avatar Mar 29 '20 09:03 xul0038

windows上运行修改一下 directory.go:23:22 的 fd int 为 fd syscall.Handle 即可。

lemonc2009 avatar Mar 22 '22 13:03 lemonc2009