Open deoren opened 5 years ago
https://stackoverflow.com/questions/18537257/how-to-get-the-directory-of-the-currently-running-file
package main import ( "fmt" "os" "path/filepath" ) func main() { ex, err := os.Executable() if err != nil { panic(err) } exPath := filepath.Dir(ex) fmt.Println(exPath) }
https://stackoverflow.com/questions/18537257/how-to-get-the-directory-of-the-currently-running-file