mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			621 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			621 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package system
 | 
						|
 | 
						|
// DefaultPathEnvUnix is unix style list of directories to search for
 | 
						|
// executables. Each directory is separated from the next by a colon
 | 
						|
// ':' character .
 | 
						|
const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 | 
						|
 | 
						|
// DefaultPathEnvWindows is windows style list of directories to search for
 | 
						|
// executables. Each directory is separated from the next by a colon
 | 
						|
// ';' character .
 | 
						|
const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"
 | 
						|
 | 
						|
func DefaultPathEnv(os string) string {
 | 
						|
	if os == "windows" {
 | 
						|
		return DefaultPathEnvWindows
 | 
						|
	}
 | 
						|
	return DefaultPathEnvUnix
 | 
						|
}
 |