pkg.go.dev has the ability to show documentation for different GOOS by setting the variable in the URL or by using the dropdown. It does however not default to the host operating system like it did on godoc. This has lead to repeated confusion when people want to use a function, but find out it doesn't exist during compile time.
An example of this is https://pkg.go.dev/github.com/creack/pty, which when viewed on a windows machine shows a function Start. When changing the GOOS to windows it disappears.
I would propose defaulting to the visitor's operating system when possible.
edit: clarified which host
pkg.go.dev has the ability to show documentation for different
GOOSby setting the variable in the URL or by using the dropdown. It does however not default to the host operating system like it did on godoc. This has lead to repeated confusion when people want to use a function, but find out it doesn't exist during compile time.An example of this is https://pkg.go.dev/github.com/creack/pty, which when viewed on a windows machine shows a function
Start. When changing theGOOSto windows it disappears.I would propose defaulting to the visitor's operating system when possible.
edit: clarified which host