mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 12:56:27 -04:00
17 lines
182 B
Go
17 lines
182 B
Go
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)
|
|
}
|