github.com/nvi-inc/fsgo@v0.2.1/versions/registry.go (about)

     1  package versions
     2  
     3  const (
     4  	basepath = "/usr2/fs"
     5  )
     6  
     7  type Creator func() FieldSystem
     8  
     9  var Creators = map[string]Creator{}
    10  
    11  func Add(name string, creator Creator) {
    12  	Creators[name] = creator
    13  }