réplica de
				https://github.com/therootcompany/pathman.git
				synced 2025-10-31 21:12:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 líneas
		
	
	
		
			392 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 líneas
		
	
	
		
			392 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +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)
 | |
| }
 |