Documentation
¶
Index ¶
- Variables
- func CheckMd5Sum(path string) (string, error)
- func Copy(srcFile, dstFile string) error
- func CopyDirectory(scrDir, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func Decode(f io.ReadSeeker, obj interface{}) error
- func Encode(obj interface{}) ([]byte, error)
- func Exists(filePath string) bool
- func LoadFromPath(baseDir, filename string, obj interface{}) error
- func SaveToPath(baseDir, filename string, obj interface{}) error
- func WrapErrors(errs ...error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileNotFound file not found ErrFileNotFound = errors.New("file not found") // ErrInvalidJsonFileFormat Contains all errors reported during json decode. ErrInvalidJsonFileFormat = errors.New("invalid json file") )
Functions ¶
func CheckMd5Sum ¶
func CopyDirectory ¶
func CreateIfNotExists ¶
CreateIfNotExists creates a new directory if not exists
func Decode ¶
func Decode(f io.ReadSeeker, obj interface{}) error
func LoadFromPath ¶
func SaveToPath ¶
func WrapErrors ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.