I have a package with 3 files: osctrl_darwin.go, osctrl_linux.go and osctrl_windows.go
the first 2 contain:
package osctrl
import (
"syscall"
)
// GetSyscallNewProcessGroup returns a SysProcAttr struct to start a new process group
func GetSyscallNewProcessGroup() *syscall.SysProcAttr {
syscallNewProcessGroupLin := &syscall.SysProcAttr{
Setpgid: true,
}
return syscallNewProcessGroupLin
}
the third one (for windows) is this:
package osctrl
import (
"syscall"
)
// GetSyscallNewProcessGroup returns a SysProcAttr struct to start a new process group
func GetSyscallNewProcessGroup() *syscall.SysProcAttr {
syscallNewProcessGroupWin := &syscall.SysProcAttr{
CreationFlags: syscall.CREATE_NEW_PROCESS_GROUP,
}
return syscallNewProcessGroupWin
}
gopls reports No packages found for open file C:my\pack\path\osctrl\osctrl_darwin.go: <nil>. If this file contains build tags, try adding "-tags=<build tag>" to your gopls "buildFlag" configuration (see (https://github.com/golang/tools/blob/master/gopls/doc/settings.md#buildflags-string). Otherwise, see the troubleshooting guidelines for help investigating (https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md).
and I am unable to get info when I hover with the cursor on syscall.SysProcAttr (in the linux and darwin files) while I can on windows
(the program compiles fine thought with set GOOS=linux && set GOARCH=386 && go build .)