Source File
env.go
Belonging Package
github.com/shirou/gopsutil/v3/common
package commontype EnvKeyType string// EnvKey is a context key that can be used to set programmatically the environment// gopsutil relies on to perform calls against the OS.// Example of use://// ctx := context.WithValue(context.Background(), common.EnvKey, EnvMap{common.HostProcEnvKey: "/myproc"})// avg, err := load.AvgWithContext(ctx)var EnvKey = EnvKeyType("env")const (HostProcEnvKey EnvKeyType = "HOST_PROC"HostSysEnvKey EnvKeyType = "HOST_SYS"HostEtcEnvKey EnvKeyType = "HOST_ETC"HostVarEnvKey EnvKeyType = "HOST_VAR"HostRunEnvKey EnvKeyType = "HOST_RUN"HostDevEnvKey EnvKeyType = "HOST_DEV"HostRootEnvKey EnvKeyType = "HOST_ROOT")type EnvMap map[EnvKeyType]string
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |