Manage PATH on Windows, Mac, and Linux with various Shells
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

25 líneas
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)
}