Skip to content
/ passwd Public
forked from willdonnelly/passwd

A Go parser for the /etc/passwd file

Notifications You must be signed in to change notification settings

whatap/passwd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

> godoc github.com/willdonnelly/passwd

PACKAGE

package passwd
    import "github.com/willdonnelly/passwd"


FUNCTIONS

func Parse() (map[string]Entry, error)
    Parse opens the '/etc/passwd' file and parses it into a map from
    usernames to Entries


TYPES

type Entry struct {
    Pass  string
    Uid   string
    Gid   string
    Gecos string
    Home  string
    Shell string
}
    An Entry contains all the fields for a specific user

About

A Go parser for the /etc/passwd file

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%