user

package
v0.0.0-...-1789bb6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USERNAME_COL = 0
	UID_COL      = 2
	GID_COL      = 3
	NAME_COL     = 4
	HOME_DIR_COL = 5
	SHELL_COL    = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Uid      string // user id
	Gid      string // primary group id
	Username string
	Name     string
	HomeDir  string
	Shell    string
}

func AllUsers

func AllUsers() ([]*User, error)

func Current

func Current(users []*User) (*User, error)

func Lookup

func Lookup(username string, users []*User) (*User, error)

func LookupId

func LookupId(uid string, users []*User) (*User, error)

func (*User) String

func (u *User) String() string

Jump to

Keyboard shortcuts

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