Documentation
¶
Index ¶
- type Genius
- func New(source map[string]any, opts ...Opt) *Genius
- func NewFromRawJSON(source []byte, opts ...Opt) (*Genius, error)
- func NewFromToml(source []byte, opts ...Opt) (*Genius, error)
- func NewFromType(source []byte, configType string, opts ...Opt) (*Genius, error)
- func NewFromYaml(source []byte, opts ...Opt) (*Genius, error)
- func (g *Genius) Append(key string, values ...any) error
- func (g *Genius) Del(key string)
- func (g *Genius) EncodeToJSON() ([]byte, error)
- func (g *Genius) EncodeToPrettyJSON() ([]byte, error)
- func (g *Genius) EncodeToToml() ([]byte, error)
- func (g *Genius) EncodeToType(configType string) ([]byte, error)
- func (g *Genius) EncodeToYaml() ([]byte, error)
- func (g *Genius) Get(key string) any
- func (g *Genius) GetAllKeys() []string
- func (g *Genius) GetAllSettings() map[string]any
- func (g *Genius) GetOuterKeys(key string) []string
- func (g *Genius) GetTopLevelKeys() []string
- func (g *Genius) IsIndexPath(key string) bool
- func (g *Genius) IsSet(key string) bool
- func (g *Genius) Set(key string, value any) error
- func (g *Genius) Sub(key string) *Genius
- type Opt
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Genius ¶
type Genius struct {
// contains filtered or unexported fields
}
func NewFromType ¶ added in v0.4.2
func (*Genius) EncodeToJSON ¶ added in v0.4.0
func (*Genius) EncodeToPrettyJSON ¶ added in v0.5.2
func (*Genius) EncodeToToml ¶ added in v0.3.1
func (*Genius) EncodeToType ¶ added in v0.4.2
func (*Genius) EncodeToYaml ¶ added in v0.4.0
func (*Genius) GetAllKeys ¶
func (*Genius) GetAllSettings ¶
func (*Genius) GetOuterKeys ¶
GetOuterKeys Experiment Feature
func (*Genius) GetTopLevelKeys ¶ added in v0.6.1
func (*Genius) IsIndexPath ¶
Click to show internal directories.
Click to hide internal directories.