Files
lsix/internal/util/path.go
Your Name b3e1645bf2 3.0
2025-05-25 18:12:09 +08:00

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)
}