https://github.com/koding/passwd
A Go parser for the /etc/passwd file
https://github.com/koding/passwd
Last synced: 2 months ago
JSON representation
A Go parser for the /etc/passwd file
- Host: GitHub
- URL: https://github.com/koding/passwd
- Owner: koding
- License: mit
- Fork: true (willdonnelly/passwd)
- Created: 2014-09-29T21:09:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-25T08:55:52.000Z (over 9 years ago)
- Last Synced: 2024-06-21T21:01:13.349Z (almost 2 years ago)
- Language: Go
- Size: 6.84 KB
- Stars: 2
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
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