Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetHostName ¶ added in v0.1.6
func GetHostName() string
func GetUserName ¶ added in v0.1.6
func GetUserName() string
func ListenSysSignal ¶
func ListenSysSignal(ctx context.Context, sglcallback func(os.Signal) error, sig ...os.Signal) error
如果sglcallback返回true则继续监听
func ProcessExist ¶ added in v0.2.1
Types ¶
type CallFrames ¶ added in v0.1.6
type CallFrames []uintptr
func NewCallers ¶ added in v0.1.6
func NewCallers(depth int) CallFrames
func NewCallersDepth ¶ added in v0.1.6
func NewCallersDepth(calldepth int, depth int) CallFrames
type Caller ¶ added in v0.1.6
type Caller uintptr
func NewCallerDepth ¶ added in v0.1.6
func (Caller) Format ¶ added in v0.1.6
Format formats the Caller according to the fmt.Formatter interface.
Click to show internal directories.
Click to hide internal directories.