MCPcopy Create free account
hub / github.com/blobcache/blobcache / ParseURL

Function ParseURL

src/blobcache/fq.go:44–50  ·  view source on GitHub ↗
(x string)

Source from the content-addressed store, hash-verified

42}
43
44func ParseURL(x string) (*URL, error) {
45 var u URL
46 if err := u.UnmarshalText([]byte(x)); err != nil {
47 return nil, err
48 }
49 return &u, nil
50}
51
52func (u URL) String() string {
53 data, _ := u.MarshalText()

Callers 2

mainFunction · 0.92
TestParseURLFunction · 0.85

Calls 1

UnmarshalTextMethod · 0.95

Tested by 1

TestParseURLFunction · 0.68