gecos

package module
v0.0.0-...-49d0a95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 5 Imported by: 5

README

go-gecos

Read the GECOS field on a Linunx machine. The GECOS field is the place in /etc/passwd (or other passwd-like entry, such as LDAP and friends) that stores the real-name (as exposed in os/user.User.Name), Room location, Office Phone, Home Phone, and "other".

These entries can be set or changed using the chfn(1) command.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoGECOSEntry = fmt.Errorf("No GECOS Entry for this user")
)

Functions

This section is empty.

Types

type GECOS

type GECOS struct {
	Name        string
	Room        string
	OfficePhone string
	HomePhone   string
	Other       string
}

func Lookup

func Lookup(user *user.User) (*GECOS, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL