Manage PATH on Windows, Mac, and Linux with various Shells
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
 
 
 

25 行
392 B

// +build !windows
package main
import (
"git.rootprojects.org/root/pathman/envpath"
)
var pathstore = ""
func addPath(p string) (bool, error) {
return envpath.Add(p)
}
func removePath(p string) (bool, error) {
return envpath.Remove(p)
}
func listPaths() ([]string, error) {
return envpath.Paths()
}
func indexOfPath(cur []string, p string) int {
return envpath.IndexOf(cur, p)
}