aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2021-10-24 15:02:07 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2021-10-24 15:02:07 +0200
commit813d03a5c700947973d3a5e90b4f0242f3b5a896 (patch)
tree047daa6a3240cd08345aa975cf8e39610a7f3494
parenta19b3d8f0eb71ef0fd679c52d57b1a933c3e0d2d (diff)
Document Path function
-rw-r--r--proxy.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/proxy.go b/proxy.go
index 79e9e68..1375e1d 100644
--- a/proxy.go
+++ b/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()