go-cms
go-cms copied to clipboard
Go run main.go 报错,
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
去修改文件 line:23 改为
return syscall.Close(syscall.Handle(fd))
directory.go:23:22 的 fd int 修改为 fd syscall.Handle即可。