Manage PATH on Windows, Mac, and Linux with various Shells
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

25 linhas
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)
}