proc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddShutdownListener

func AddShutdownListener(fn func()) func()

AddShutdownListener returns fn itself on windows, lets callers call fn on their own.

func AddWrapUpListener

func AddWrapUpListener(fn func()) func()

AddWrapUpListener returns fn itself on windows, lets callers call fn on their own.

func Done

func Done() <-chan struct{}

func Env

func Env(name string) string

Env returns the value of the given environment variable.

func EnvInt

func EnvInt(name string) (int, bool)

EnvInt returns an int value of the given environment variable.

func Pid

func Pid() int

Pid returns pid of current process.

func ProcessName

func ProcessName() string

ProcessName returns the processname, same as the command name.

func SetTimeToForceQuit

func SetTimeToForceQuit(duration time.Duration)

Types

type Stopper

type Stopper interface {
	Stop()
}

Stopper interface wraps the method Stop.

func StartProfile

func StartProfile() Stopper

Jump to

Keyboard shortcuts

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