usergroup

package
v3.0.0-rc21 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package usergroup provides helpers for user and group

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GIDFromString

func GIDFromString(s string) (uint32, error)

GIDFromString function tries to retrieve group id from a group string 's' 's' may be an group id or a group name

func IsPrivileged

func IsPrivileged() (bool, error)

IsPrivileged return true if current user is privileged user

func UIDFromString

func UIDFromString(s string) (uint32, error)

UIDFromString function tries to retrieve user id from a user string 's' 's' may be an user id or a user name

Types

This section is empty.

Jump to

Keyboard shortcuts

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