os/user (on golang.org and go.dev)
imports 10 packages, and imported by one package
Involved Source Files
Exported Type Names
Current returns the current user.
The first call will cache the current user information.
Subsequent calls will return the cached value and will not reflect
changes to the current user.
Lookup looks up a user by username. If the user cannot be found, the
returned error is of type UnknownUserError.
LookupGroup looks up a group by name. If the group cannot be found, the
returned error is of type UnknownGroupError.
LookupGroupId looks up a group by groupid. If the group cannot be found, the
returned error is of type UnknownGroupIdError.
LookupId looks up a user by userid. If the user cannot be found, the
returned error is of type UnknownUserIdError.
||The pages are generated with Golds v0.1.6-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.|