Documentation
¶
Index ¶
- Variables
- func CheckFile(path string) bool
- func EnsureDirExist(value string) error
- func ReadAsMap(path string) (map[string]interface{}, error)
- func ReadInto(path string, target interface{}) error
- func ReadPropertiesFile(path string) (map[string]string, error)
- func ReadPropertiesInto(path string, target interface{}) error
- func WriteInto(target interface{}, path string, ensureDir bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFailedDecodeAsMap = fmt.Errorf("failed to decode json file as map")
)
Functions ¶
func EnsureDirExist ¶
EnsureDirExist will create it if it does not exist
/foo/file.txt -> /foo
/foo -> /
/foo/ -> /foo
func ReadPropertiesInto ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.