mirror of
				https://github.com/saxpjexck/lsix.git
				synced 2025-10-31 17:42:34 +08:00 
			
		
		
		
	3.0
This commit is contained in:
		
							
								
								
									
										14
									
								
								internal/util/path.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								internal/util/path.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| package util | ||||
|  | ||||
| import ( | ||||
| 	"os" | ||||
| 	"path/filepath" | ||||
| ) | ||||
|  | ||||
| func GetBinDir() string { | ||||
| 	exePath, err := os.Executable() | ||||
| 	if err != nil { | ||||
| 		panic(err) | ||||
| 	} | ||||
| 	return filepath.Dir(exePath) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Your Name
					Your Name