#error import syswindows

9 messages · Page 1 of 1 (latest)

neon urchin
#

i am getting this import error
could not import golang.org/x/sys/windows (no required module provides package "golang.org/x/sys/windows")

tender gale
#

go mod download
go get

#

must compile for windows

#

something along those lines

neon urchin
#

is there any way to import this in Linux?

#

and can i import some packages only if
runtime is windows?

tender gale
#

_windows.go suffix should also work, not sure where exactly it's documented