mirror of
https://github.com/saxpjexck/lsix.git
synced 2025-09-27 18:42:11 +08:00
15 lines
173 B
Go
15 lines
173 B
Go
package util
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetBinDir() string {
|
|
exePath, err := os.Executable()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return filepath.Dir(exePath)
|
|
}
|