osutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname() string

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

func ID

func ID() string

ID returns the ID of the system as specific in the osRelease file.

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
⌂ 换网址