You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Go 1.4.2 on Linux/amd64 and was unpleasantly surprised that the functions in the os/user package aren't implemented for GOARCH=386, e.g. a call to `user.
$ cat usertest.go
package main
import (
"fmt"
"os/user"
)
func main() {
u, err := user.Current()
fmt.Printf("current user: %#v %#v\n", u, err)
}
$ GOARCH=amd64 go run usertest.go
current user: &user.User{Uid:"1000", Gid:"1000", Username:"fd0", Name:"Alexander Neumann", HomeDir:"/home/fd0"} <nil>
$ GOARCH=386 go run usertest.go
current user: (*user.User)(nil) &errors.errorString{s:"user: Current not implemented on linux/386"}
I would expect that the functions work as advertised, it sad that there are functions in the stdlib that (at least for me as a user) just don't work on some architectures. Is this documented somewhere and I overlooked it?
What's the reason for this?
The text was updated successfully, but these errors were encountered:
I'm using Go 1.4.2 on Linux/amd64 and was unpleasantly surprised that the functions in the
os/user
package aren't implemented for GOARCH=386, e.g. a call to `user.I would expect that the functions work as advertised, it sad that there are functions in the stdlib that (at least for me as a user) just don't work on some architectures. Is this documented somewhere and I overlooked it?
What's the reason for this?
The text was updated successfully, but these errors were encountered: