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

Go run main.go 报错,

Open RyanZhai opened this issue 4 years ago • 2 comments

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

RyanZhai avatar Apr 04 '20 17:04 RyanZhai

去修改文件 line:23 改为

return syscall.Close(syscall.Handle(fd))

MQPearth avatar Oct 15 '20 01:10 MQPearth

directory.go:23:22 的 fd int 修改为 fd syscall.Handle即可。

lemonc2009 avatar Mar 22 '22 13:03 lemonc2009