Documentation ¶ Rendered for linux/amd64 darwin/amd64 js/wasm Index ¶ func Lookup(uid string) (*user.User, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Lookup ¶ func Lookup(uid string) (*user.User, error) Lookup checks if the given username or uid is present in /etc/passwd and returns the user struct. If the username is not found, an error is returned. Credit to @creak, https://github.com/docker/docker/pull/1096 Types ¶ This section is empty. Source Files ¶ View all Source files user-lookup.go Click to show internal directories. Click to hide internal directories.