Path returns the on-disk JSON path for the store.
()
| 74 | |
| 75 | // Path returns the on-disk JSON path for the store. |
| 76 | func (s *Store) Path() string { |
| 77 | return filepath.Join(s.dir, string(s.kind)+"s.json") |
| 78 | } |
| 79 | |
| 80 | // All returns every entity in the store sorted by name. |
| 81 | func (s *Store) All() ([]Entity, error) { |