Documentation ¶
Overview ¶
Package system 系统工具类
Index ¶
- func CurrentDirectory() string
- func GetPid() int
- func GetTime() string
- func GetTimestamp() int64
- func GetTimestampMilli() int64
- func GetWd() string
- func LookupGid(name string) int
- func LookupUIDAndGID(name string) (int, int)
- func NumGoroutine() int
- func ParentDirectory(directory string) string
- func UIDAndGID() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupUIDAndGID ¶
LookupUIDAndGID 根据用户名获取指定用户的uid和gid 获取失败返回-1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.