api/util.go
2022-12-19 21:07:54 +08:00

16 lines
227 B
Go

package api
import (
"os"
"path/filepath"
)
// getExeFilename
func getExeFilename() string {
_, logfilename := filepath.Split(os.Args[0])
if logfilename == "" {
panic("get exe filename failed")
}
return logfilename
}