Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
func
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
52
func
(u URL) String() string {
53
data, _ := u.MarshalText()
Callers
2
main
Function · 0.92
TestParseURL
Function · 0.85
Calls
1
UnmarshalText
Method · 0.95
Tested by
1
TestParseURL
Function · 0.68