Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IConfigFile ¶
type IConfigFile interface { // ConfigFile returns the configuration file path. ConfigFile() string // CheckConfigFile checks if the configuration file is exists. CheckConfigFile() bool // Reader reads the configuration file. Reader() (IReader, error) // Writer writes the given data to the configuration file. Writer(data interface{}) (string, error) }
func New ¶
func New(file string) IConfigFile
type IReader ¶
type IReader interface { // Decode decodes the configuration file content to given interface. Decode(d interface{}) error }
type ReaderResult ¶
type ReaderResult struct {
// contains filtered or unexported fields
}
func (*ReaderResult) Decode ¶
func (rr *ReaderResult) Decode(d interface{}) error
Click to show internal directories.
Click to hide internal directories.