MCPcopy
hub / github.com/windtf/wireproxy / executablePath

Function executablePath

cmd/wireproxy/main.go:53–59  ·  view source on GitHub ↗

get the executable path via syscalls or infer it from argv

()

Source from the content-addressed store, hash-verified

51
52// get the executable path via syscalls or infer it from argv
53func executablePath() string {
54 programPath, err := os.Executable()
55 if err != nil {
56 return os.Args[0]
57 }
58 return programPath
59}
60
61// check if default config file paths exist
62func configFilePath() (string, bool) {

Callers 2

lockFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected