Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willdonnelly/passwd

A Go parser for the /etc/passwd file
https://github.com/willdonnelly/passwd

Last synced: 28 days ago
JSON representation

A Go parser for the /etc/passwd file

Awesome Lists containing this project

README

        

> 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