diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-26 21:41:51 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-05-26 21:41:51 -0400 |
commit | 508549128d21d752cb861ac2d65bc8fc89e32555 (patch) | |
tree | f7f7095cb55df483654436df90b0d3cf7a98e3b4 /global/global.go | |
parent | 64c5bf8daf8b71b6efc2b4d2be34b179c8c87059 (diff) |
Added external commands
Diffstat (limited to 'global/global.go')
-rw-r--r-- | global/global.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/global/global.go b/global/global.go index f84a340..708f05a 100644 --- a/global/global.go +++ b/global/global.go @@ -1,9 +1,16 @@ package global +import ( + "os" + "strings" +) + var Options []string var ReturnCode int +var Paths []string func init() { Options = make([]string, 0) ReturnCode = 0 + Paths = strings.Split(os.Getenv("PATH"), ":") } |