(baseDir string)
| 59 | type Opt func(*Store) |
| 60 | |
| 61 | func WithBaseDir(baseDir string) Opt { |
| 62 | return func(s *Store) { |
| 63 | s.baseDir = baseDir |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // NewStore creates a new content store |
| 68 | func NewStore(opts ...Opt) (*Store, error) { |
no outgoing calls