group

package module
v0.0.0-...-bae18b2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalGroup string = "/etc/group"
)

Variables

This section is empty.

Functions

func ID

func ID(name string) (string, error)

ID returns the group id of group name.

func Members

func Members(name string) ([]string, error)

Members returns a string slice with all member usernames of group name.

func NameByID

func NameByID(id string) (string, error)

NameByID returns the group name of group ID.

Types

type Username

type Username string

func (*Username) MemberOf

func (u *Username) MemberOf(name string) bool

MemberOf returns a boolean if the value of *Username is in group name.

Jump to

Keyboard shortcuts

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