MCPcopy Create free account
hub / github.com/go-git/go-git / Module

Method Module

storage/memory/storage.go:315–324  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

313type ModuleStorage map[string]*Storage
314
315func (s ModuleStorage) Module(name string) (storage.Storer, error) {
316 if m, ok := s[name]; ok {
317 return m, nil
318 }
319
320 m := NewStorage()
321 s[name] = m
322
323 return m, nil
324}

Callers

nothing calls this directly

Calls 1

NewStorageFunction · 0.70

Tested by

no test coverage detected