MCPcopy Index your code
hub / github.com/dnote/dnote / GetPath

Function GetPath

pkg/server/helpers/url.go:24–31  ·  view source on GitHub ↗

GetPath returns a path optionally suffixed by query string

(path string, query *url.Values)

Source from the content-addressed store, hash-verified

22
23// GetPath returns a path optionally suffixed by query string
24func GetPath(path string, query *url.Values) string {
25 if query == nil {
26 return path
27 }
28
29 q := query.Encode()
30 return fmt.Sprintf("%s?%s", path, q)
31}

Callers 3

users.goFile · 0.92
AuthFunction · 0.92
TestGetPathFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestGetPathFunction · 0.56