Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
dir函数主要是用来返回 URL 的路径
dir
func dir(s1 string) string
https://docs.xray.cool/a/b
dir("https://docs.xray.cool/a/b")
https://docs.xray.cool/a/
/a/b
dir("/a/b")
/a/
a/b/c
dir("a/b/c")
a/b/
a/
dir("a/")
/
dir("/")
/a
dir("/a")
a
dir("a")
""
dir("")
./../../a
dir("./../../a")
./../../
Was this page helpful?