Ejemplo n.º 1
0
func init() {
	store.Register("memory", func(r store.Robot) store.Adapter {
		return &MemoryStore{
			data: make(map[string]string),
		}
	})
}
Ejemplo n.º 2
0
func init() {
	// type InitFunc func() Adapter
	store.Register("bolt", func(r store.Robot) store.Adapter {
		return newBoltStore()
	})
}