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
Does this issue reproduce with the latest release?
Yes!
$ go doc user.User
package user // import "os/user"
type User struct {
// Uid is the user ID.
// On POSIX systems, this is a decimal number representing the uid.
// On Windows, this is a security identifier (SID) in a string format.
// On Plan 9, this is the contents of /dev/user.
Uid string
// Gid is the primary group ID.
// On POSIX systems, this is a decimal number representing the gid.
// On Windows, this is a SID in a string format.
// On Plan 9, this is the contents of /dev/user.
Gid string
// Username is the login name.
Username string
// Name is the user's real or display name.
// It might be blank.
// On POSIX systems, this is the first (or only) entry in the GECOS field
// list.
// On Windows, this is the user's display name.
// On Plan 9, this is the contents of /dev/user.
Name string
// HomeDir is the path to the user's home directory (if they have one).
HomeDir string
}
User represents a user account.
What did you expect to see?
$ go doc user.User
package user // import "os/user"
type User struct {
Uid int
Gid int
Username string
Name string
HomeDir string
}
What did you see instead?
$ go doc user.User
package user // import "os/user"
type User struct {
Uid string
Gid string
Username string
Name string
HomeDir string
}
The text was updated successfully, but these errors were encountered:
The documentation for Uid points out that it is only numeric on POSIX systems. On other systems, they're string values. It therefore cannot be an integer.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes!
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: