MCPcopy
hub / github.com/txthinking/brook / ParseLink

Function ParseLink

link.go:27–37  ·  view source on GitHub ↗
(link string)

Source from the content-addressed store, hash-verified

25}
26
27func ParseLink(link string) (kind, server string, v url.Values, err error) {
28 var u *url.URL
29 u, err = url.Parse(link)
30 if err != nil {
31 return
32 }
33 kind = u.Host
34 server = u.Query().Get(kind)
35 v = u.Query()
36 return
37}

Callers 2

mainFunction · 0.92
NewBrookLinkFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected