Discover Packages
github.com/AlexZ33/utils
system
package
Version:
v0.0.0-...-512269d
Opens a new window with list of versions in this module.
Published: May 29, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package system contain some functions about os, runtime, shell command
CompareOsEnv gets env named by the key and compare it with comparedEnv
ExecCommand use shell /bin/bash -c to execute command
GetOsEnv Getenv retrieves the value of the environment variable named by the key.
It returns the value, which will be empty if the variable is not present.
To distinguish between an empty value and an unset value, use os.LookupEnv.
SetOsEnv sets the value of the environment variable named by the key.
It returns an error, if any.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.