Versions in this module Expand all Collapse all v1 v1.2.0 Dec 13, 2021 Changes in this version + var ErrPathDeleteError error = errors.New("path delete error") + type File struct + Name string + func NewFile(name string) (f *File, e error) + func (f *File) Append(data []byte) error + func (f *File) ReadAll() ([]byte, error) + func (f *File) ReadJSON() (data interface{}, err error) + func (f *File) ReadString() (string, error) + func (f *File) Write(data []byte) error + func (f *File) WriteJSON(data interface{}) error v1.0.2 Oct 13, 2021 Changes in this version + const ErrFileDeleteError + const ErrFileError + const ErrFileNotFound + const ErrFileReadError + const ErrFileWriteError + const ErrJSONMarshallError + const ErrJSONParseError + const ErrPathCreateError + 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