Files
go_sysutils/envs/consts.go
2025-12-06 19:19:53 -05:00

23 lines
433 B
Go

package envs
import (
"os"
"github.com/shirou/gopsutil/v4/process"
"r00t2.io/sysutils/internal"
)
var (
StructTagInterpolate string = "envsub"
)
var (
defEnv *StaticEnv = &StaticEnv{
dynamic: true,
self: true,
// don't need a process.NewProcess since the only extra thing it does is check if the PID exists.
proc: &process.Process{Pid: int32(os.Getpid())},
envVars: internal.EnvListToMap(os.Environ()),
}
)