3 ms·
You can absolutely call into OS APIs, as that's what the Go implementation does to interact with the OS in the first place. It also uses cgo internally for tha
by est31 6y ago
You can absolutely call into OS APIs, as that's what the Go implementation does to interact with the OS in the first place.
It also uses cgo internally for that task. https://github.com/golang/go/blob/2a029b3f26169be7c89cb2cdcc3db4b5d097a8b8/src/runtime/os_windows.go https://github.com/golang/go/blob/2a029b3f26169be7c89cb2cdcc...
- pjmlp 6y agoRight, now try to actually use it. Specially missing entries from that list.
- est31 6y agoWhat do you mean? You use this when you use the builtin os package of Go. https://golang.org/pkg/os/ https://golang.org/pkg/os/
- pjmlp 6y agoNow try to use that, to call these from a Linux compiled executable, https://docs.microsoft.com/en-us/windows/win32/api/ https://docs.microsoft.com/en-us/windows/win32/api/