Documentation ¶
Index ¶
- Constants
- type Configurator
- func (c *Configurator) Get() (*types.Config, error)
- func (c *Configurator) GetAllValues() map[string]interface{}
- func (c *Configurator) GetValueByString(key string) string
- func (c *Configurator) Path() string
- func (c *Configurator) Save(config *types.Config) error
- func (c *Configurator) SetValueByString(key string, value string) error
- type Option
- type Options
Constants ¶
View Source
const ( FileName = "config" FileExtension = "json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) (*Configurator, error)
func (*Configurator) GetAllValues ¶
func (c *Configurator) GetAllValues() map[string]interface{}
func (*Configurator) GetValueByString ¶
func (c *Configurator) GetValueByString(key string) string
func (*Configurator) Path ¶
func (c *Configurator) Path() string
func (*Configurator) SetValueByString ¶
func (c *Configurator) SetValueByString(key string, value string) error
type Option ¶
type Option func(*Options)
func WithApplication ¶
func WithLocation ¶
func WithLogger ¶
func WithValidator ¶
Click to show internal directories.
Click to hide internal directories.