Versions in this module Expand all Collapse all v1 v1.4.0 Dec 2, 2014 Changes in this version + var ErrUnsupported = errors.New("user lookup: operating system does not provide passwd-formatted data") + func GetGroup() (io.ReadCloser, error) + func GetGroupFile() (string, error) + func GetPasswd() (io.ReadCloser, error) + func GetPasswdFile() (string, error) + type ExecUser struct + Gid int + Home string + Sgids []int + Uid int + func GetExecUser(userSpec string, defaults *ExecUser, passwd, group io.Reader) (*ExecUser, error) + func GetExecUserFile(userSpec string, defaults *ExecUser, passwdPath, groupPath string) (*ExecUser, error) type Group + func CurrentGroup() (Group, error) + func LookupGid(gid int) (Group, error) + func LookupGroup(groupname string) (Group, error) + func ParseGroupFile(path string) ([]Group, error) + func ParseGroupFileFilter(path string, filter func(Group) bool) ([]Group, error) type User + func CurrentUser() (User, error) + func LookupUid(uid int) (User, error) + func LookupUser(username string) (User, error) + func ParsePasswdFile(path string) ([]User, error) + func ParsePasswdFileFilter(path string, filter func(User) bool) ([]User, error) v1.2.0 Aug 20, 2014 Changes in this version + var ErrRange = fmt.Errorf("Uids and gids must be in range %d-%d", minId, maxId) + func GetUserGroupSupplementaryHome(userSpec string, defaultUid, defaultGid int, defaultHome string) (int, int, []int, string, error) + type Group struct + Gid int + List []string + Name string + Pass string + func ParseGroup() ([]*Group, error) + func ParseGroupFilter(filter func(*Group) bool) ([]*Group, error) + type User struct + Gecos string + Gid int + Home string + Name string + Pass string + Shell string + Uid int + func ParsePasswd() ([]*User, error) + func ParsePasswdFilter(filter func(*User) bool) ([]*User, error) Incompatible versions in this module v2.2.1+incompatible Jun 15, 2015 v2.2.0+incompatible Jun 11, 2015 v2.1.1+incompatible Jun 9, 2015 v2.1.0+incompatible May 21, 2015 v2.0.1+incompatible May 11, 2015 v2.0.0+incompatible May 7, 2015