mirror of
				https://github.com/therootcompany/pathman.git
				synced 2024-11-16 17:09:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			401 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			401 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // +build windows
 | |
| 
 | |
| package main
 | |
| 
 | |
| import (
 | |
| 	"git.rootprojects.org/root/pathman/winpath"
 | |
| )
 | |
| 
 | |
| var pathstore = "[winpath] "
 | |
| 
 | |
| func addPath(p string) (bool, error) {
 | |
| 	return winpath.Add(p)
 | |
| }
 | |
| 
 | |
| func removePath(p string) (bool, error) {
 | |
| 	return winpath.Remove(p)
 | |
| }
 | |
| 
 | |
| func listPaths() ([]string, error) {
 | |
| 	return winpath.Paths()
 | |
| }
 | |
| 
 | |
| func indexOfPath(cur []string, p string) int {
 | |
| 	return winpath.IndexOf(cur, p)
 | |
| }
 |