README 444 B

1234567891011121314151617181920212223242526
  1. > godoc github.com/willdonnelly/passwd
  2. PACKAGE
  3. package passwd
  4. import "github.com/willdonnelly/passwd"
  5. FUNCTIONS
  6. func Parse() (map[string]Entry, error)
  7. Parse opens the '/etc/passwd' file and parses it into a map from
  8. usernames to Entries
  9. TYPES
  10. type Entry struct {
  11. Pass string
  12. Uid string
  13. Gid string
  14. Gecos string
  15. Home string
  16. Shell string
  17. }
  18. An Entry contains all the fields for a specific user