Documentation
¶
Index ¶
- Variables
- 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, error)
- func LoadJSON(file string) (data interface{}, e error)
- func RealPath(path string) string
- func Remove(file string) error
- func Save(file string, data []byte) error
- func SaveJSON(file string, data interface{}) error
- type File
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileNotFound error = errors.New("file not found") ErrFileReadError error = errors.New("file read error") ErrFileWriteError error = errors.New("file write error") ErrFileDeleteError error = errors.New("file delete error") ErrPathCreateError error = errors.New("path create error") ErrPathDeleteError error = errors.New("path delete error") )
Functions ¶
func GetBinName ¶
func GetBinName() string
Types ¶
type File ¶ added in v1.2.0
type File struct { Name string // contains filtered or unexported fields }
func (*File) ReadString ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.