osutil

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(u string) string

User looks up the username u and return the home directory.

func Hostname

func Hostname() string

Hostname returns the hostname of this host. If it fails the value $HOSTNAME is returned.

func User

func User(u string) (int64, int64)

User looks up the username u and return the uid and gid. If the username can't be found 0, 0 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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