diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-10-24 15:02:07 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2021-10-24 15:02:07 +0200 |
commit | 813d03a5c700947973d3a5e90b4f0242f3b5a896 (patch) | |
tree | 047daa6a3240cd08345aa975cf8e39610a7f3494 | |
parent | a19b3d8f0eb71ef0fd679c52d57b1a933c3e0d2d (diff) |
Document Path function
-rw-r--r-- | proxy.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |