How to reliably detect os/platform in Go

Here's what I'm currently using, which I think gets the job done, but there's got to be a better way: func isWindows() bool { return os.PathSeparator == '\\' && os.PathListSeparator ==...