Document Path function
parent
a19b3d8f0e
commit
813d03a5c7
2
proxy.go
2
proxy.go
|
@ -26,6 +26,8 @@ var playerNameChars = regexp.MustCompile("^[a-zA-Z0-9-_]+$")
|
|||
var proxyDir string
|
||||
var proxyDirOnce sync.Once
|
||||
|
||||
// Path prepends the directory the executable is in to the given path.
|
||||
// It does not follow symlinks.
|
||||
func Path(path ...string) string {
|
||||
proxyDirOnce.Do(func() {
|
||||
executable, err := os.Executable()
|
||||
|
|
Loading…
Reference in New Issue