Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFilePath(path string, perm os.FileMode) (string, error)
- func CreateFolder(dir string, perm os.FileMode) error
- func DecodeGobValue(out interface{}, in []byte) error
- func DecodeValue(out interface{}, in []byte, enc Encoding) error
- func DeleteFile(file string) error
- func EncodeGobValue(in interface{}) ([]byte, error)
- func EncodeTextFormatSummary(in interface{}) ([]byte, error)
- func EncodeValue(in interface{}, enc Encoding) ([]byte, error)
- func FileExists(path string) bool
- func GetCurrentPath() string
- func GetDefaultConfigFile(enc Encoding) (string, error)
- func HomeFolder() string
- func ReadConfig(enc Encoding, file string, config interface{}) error
- func ReadNative(file string, config interface{}) error
- func SaveConfig(enc Encoding, file string, config interface{}) error
- func SaveNative(file string, config interface{}) error
- type Encoding
Constants ¶
View Source
const ( EncodingUnknown = Encoding("") EncodingYaml = Encoding("yaml") EncodingXml = Encoding("xml") EncodingJson = Encoding("json") )
Variables ¶
View Source
var DefaultEncodingFormat = EncodingJson
View Source
var DefaultEncodingFormatString = "json"
View Source
var EncodingList = "json, yaml, xml"
Functions ¶
func DecodeGobValue ¶
func DecodeValue ¶
func DeleteFile ¶
func EncodeGobValue ¶
func EncodeTextFormatSummary ¶
func EncodeValue ¶
func FileExists ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func GetDefaultConfigFile ¶
func HomeFolder ¶
func HomeFolder() string
func ReadConfig ¶
Load Configuration from given file
func ReadNative ¶
Load Configuration from given file
func SaveConfig ¶
Save Configuration to given file
func SaveNative ¶
Load Configuration from given file
Types ¶
Click to show internal directories.
Click to hide internal directories.