MCPcopy Create free account
hub / github.com/GuyARoss/orbit / Find

Method Find

internal/srcpack/component.go:253–255  ·  view source on GitHub ↗

Find finds the provided key if one exists

(key string)

Source from the content-addressed store, hash-verified

251
252// Find finds the provided key if one exists
253func (m PackComponentFileMap) Find(key string) PackComponent {
254 return m[parsePath(key)]
255}
256
257// Find finds and returns the the first component with provided bundle key
258func (m PackComponentFileMap) FindBundleKey(key string) PackComponent {

Callers 1

Calls 1

parsePathFunction · 0.85

Tested by

no test coverage detected