os

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MulanPSL-2.0 Imports: 12 Imported by: 0

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

func ProcessExist(appName string) bool

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

func (CallFrames) Format added in v0.1.6

func (c CallFrames) Format(st fmt.State, verb rune)

type Caller added in v0.1.6

type Caller uintptr

func NewCaller added in v0.1.6

func NewCaller() Caller

func NewCallerDepth added in v0.1.6

func NewCallerDepth(skip int) Caller

func (Caller) File added in v0.1.6

func (f Caller) File() string

file returns the full path to the file that contains the

func (Caller) Format added in v0.1.6

func (f Caller) Format(s fmt.State, verb rune)

Format formats the Caller according to the fmt.Formatter interface.

func (Caller) Line added in v0.1.6

func (f Caller) Line() int

line returns the line number of source code of the

func (Caller) Name added in v0.1.6

func (f Caller) Name() string

name returns the name of this function, if known.

func (Caller) String added in v0.2.5

func (f Caller) String() string

Jump to

Keyboard shortcuts

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