沙鼠计划的url-string lib url-string是用于解析url的库。 的部分端口沙鼠计划中的 。 用法与范例 使用非常简单: (def urlhttp (string->url " https://host.com/foo/bar.git " )) (def urlssh (string->url " ssh://git@host.com:22/foo/bar.git?ref=master&foo=bar " )) (url-scheme urlhttp) ; => "https" (url-host urlhttp) ; => "host.com" (url-user urlhttp) ; => #f (url-port urlhttp) ; => #f (url-scheme urlssh) ; => "ssh" (url-host