cached

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserHomeDir

func GetUserHomeDir() string

func NewUsernameMap

func NewUsernameMap() *usernameMap

Types

type Gid

type Gid = string

type Groupname

type Groupname = string

func GetGroupname added in v0.5.0

func GetGroupname(g Gid) Groupname

func GetUsername added in v0.5.0

func GetUsername(u Uid) Groupname

type GroupnameMap added in v0.8.0

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

GroupnameMap is a map from Gid to Groupname

func NewGroupnameMap

func NewGroupnameMap() *GroupnameMap

func (*GroupnameMap) Get added in v0.8.0

func (m *GroupnameMap) Get(g Gid) Groupname

type Map added in v0.4.0

type Map[k comparable, v any] struct {
	*tsmap.Map[k, v]
}

func NewCacheMap added in v0.4.0

func NewCacheMap[k comparable, v any](len int) *Map[k, v]

type Uid

type Uid = string

type Username

type Username = string

Jump to

Keyboard shortcuts

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