Documentation
¶
Index ¶
- func AddToPath(binDir string) error
- func CleanJDKPath() error
- func IsInPath(dir string) bool
- func QuerySystemEnvironmentVariable(key string) (string, error)
- func QueryUserEnvironmentVariable(key string) (string, error)
- func RestoreOldPath() error
- func SetCurrentUserEnvPath(sdkType string) error
- func SetEnv(key string, value string) error
- func SetPersistentEnvVar(name, value string) error
- func SetSystemEnvPath(sdkType string) error
- func SetSystemPath(path string) error
- func UpdateEnvironmentVariable(key, value string) error
- func UpdateSystemEnvironmentVariable(key, value string) error
- func UpdateUserEnvironmentVariable(key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuerySystemEnvironmentVariable ¶
QuerySystemEnvironmentVariable 查询系统环境变量(Linux实现)
func QueryUserEnvironmentVariable ¶
QueryUserEnvironmentVariable 查询用户环境变量(Linux实现)
func SetCurrentUserEnvPath ¶
SetCurrentUserEnvPath 设置当前用户的 PATH 环境变量 (Linux 平台实现)
func SetPersistentEnvVar ¶
SetPersistentEnvVar 在 Unix-like 系统上永久设置用户级环境变量
func SetSystemEnvPath ¶
SetSystemEnvPath 永久设置系统 PATH 环境变量 (Linux 平台实现)
func SetSystemPath ¶
SetSystemPath 永久设置系统 PATH 环境变量 (Linux 平台实现)
func UpdateEnvironmentVariable ¶
UpdateSystemEnvironmentVariable 更新 Linux 系统环境变量
func UpdateSystemEnvironmentVariable ¶
UpdateSystemEnvironmentVariable 更新系统环境变量(Linux实现)
func UpdateUserEnvironmentVariable ¶
UpdateUserEnvironmentVariable 更新用户环境变量(Linux实现)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.