12345678910111213141516171819202122232425 |
- package config
- import (
- "io"
- "git.ali33.ru/fcg-xvii/go-tools/value"
- )
- type Section interface {
- ValueSetup(name string, ptr interface{}) bool
- Value(name string) (value.Value, bool)
- ValueDefault(name string, defaultVal interface{}) interface{}
- SetValue(name string, value interface{})
- Save(io.Writer) error
- }
- type Config interface {
- AppendSection(name string) (newSection Section)
- Section(name string) (Section, bool)
- Sections(name string) ([]Section, bool)
- ValueSetup(name string, ptr interface{}) bool
- Value(name string) (value.Value, bool)
- ValueDefault(name string, defaultVal interface{}) interface{}
- Save(io.Writer) error
- }
|