Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source interface {
Read() (map[string][]byte, error)
Write(data []byte, filename string) error
}
Source is the source from which config is loaded.
func NewFileSource ¶
NewFileSource returns a new fileSource.
type SourceType ¶
type SourceType int
SourceType how to store variable
const ( // MemorySource store variable in memory MemorySource SourceType = iota // FileSource store variable in file FileSource SourceType = iota )
Click to show internal directories.
Click to hide internal directories.