FileStore is a config store backed by a file such as config/config.json. It also uses the folder containing the configuration file for storing other configuration files. Not to be used directly. Only to be used as a backing store for config.Store
| 26 | // It also uses the folder containing the configuration file for storing other configuration files. |
| 27 | // Not to be used directly. Only to be used as a backing store for config.Store |
| 28 | type FileStore struct { |
| 29 | path string |
| 30 | } |
| 31 | |
| 32 | // NewFileStore creates a new instance of a config store backed by the given file path. |
| 33 | func NewFileStore(path string, createFileIfNotExists bool) (fs *FileStore, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected