group

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 4 Imported by: 0

README

Package group provides an /etc/group parser.


© 2015-2016 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this BSD-style LICENSE.

Documentation

Overview

Package group provides an /etc/group parser.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse() map[string]*Entry
Example (Adm)
group := Parse()
fmt.Println("adm.Gid:", group["adm"].Gid())
Output:

adm.Gid: 4
Example (Foobar)
group := Parse()
fmt.Println("foobar.Gid:", group["foobar"].Gid())
Output:

foobar.Gid: 0

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

func (*Entry) Gid

func (p *Entry) Gid() (gid int)

func (*Entry) Members

func (p *Entry) Members() (members []string)

func (*Entry) Passwd

func (p *Entry) Passwd() (pw string)

Jump to

Keyboard shortcuts

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