Documentation
¶
Index ¶
- Constants
- func Exists(file string) bool
- func Ext(file string) string
- func GetBinDir() string
- func GetBinName() string
- func GetCWD() string
- func GetHome() string
- func Load(file string) ([]byte, *errs.Err)
- func LoadJSON(file string) (data interface{}, err *errs.Err)
- func RealPath(path string) string
- func Remove(file string) *errs.Err
- func Save(file string, data []byte) *errs.Err
- func SaveJSON(file string, data interface{}) *errs.Err
Constants ¶
View Source
const ( ErrFileError errs.ErrCode = "ErrFileError" ErrFileNotFound errs.ErrCode = "ErrFileNotFound" ErrFileReadError errs.ErrCode = "ErrFileReadError" ErrJSONParseError errs.ErrCode = "ErrJSONParseError" ErrPathCreateError errs.ErrCode = "ErrPathCreateError" ErrFileWriteError errs.ErrCode = "ErrFileWriteError" ErrJSONMarshallError errs.ErrCode = "ErrJSONMarshallError" ErrFileDeleteError errs.ErrCode = "ErrFileDeleteError" )
Variables ¶
This section is empty.
Functions ¶
func GetBinName ¶
func GetBinName() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.