This commit is contained in:
Your Name
2025-05-25 18:12:09 +08:00
commit b3e1645bf2
70 changed files with 6109 additions and 0 deletions

14
internal/util/path.go Normal file
View 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)
}