MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetUrl

Function GetUrl

internal/model/obj.go:165–176  ·  view source on GitHub ↗
(obj Obj)

Source from the content-addressed store, hash-verified

163}
164
165func GetUrl(obj Obj) (url string, ok bool) {
166 for {
167 switch o := obj.(type) {
168 case URL:
169 return o.URL(), true
170 case ObjUnwrap:
171 obj = o.Unwrap()
172 default:
173 return
174 }
175 }
176}
177
178func GetProvider(obj Obj) (string, bool) {
179 for {

Callers 2

buildFSGetRawURLFunction · 0.92
FsGetFunction · 0.92

Calls 2

URLMethod · 0.65
UnwrapMethod · 0.65

Tested by

no test coverage detected