os

package
v2.2.27 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroup

func GetGroup(gid uint32) string

GetGroup 通过 gid 获取组名

func GetUser

func GetUser(uid uint32) string

GetUser 通过 uid 获取用户名

func IsDebian

func IsDebian() bool

IsDebian 判断是否是 Debian 系统

func IsRHEL

func IsRHEL() bool

IsRHEL 判断是否是 RHEL 系统

func IsUbuntu added in v2.2.27

func IsUbuntu() bool

IsUbuntu 判断是否是 Ubuntu 系统

Types

This section is empty.

Jump to

Keyboard shortcuts

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