user

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

package user re-implements os/user functions without the use of cgo

package user re-implements os/user functions without the use of cgo for unix

Index

Constants

View Source
const (
	PASSWD_PATH       = "/etc/passwd"
	CURRENT_ERROR_MSG = "failed to get the current user from the system user database"

	PASSWD_USERNAME_INDEX = 0
	PASSWD_UID_INDEX      = 2
	PASSWD_GID_INDEX      = 3
	PASSWD_GEOCS_INDEX    = 4
	PASSWD_HOME_DIR_INDEX = 5
)

Variables

This section is empty.

Functions

func Current

func Current() (*user.User, error)

Current returns the current user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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