Documentation ¶
Index ¶
- func DecodeToml(fileName string, v interface{}) error
- func DirAppendSepa(dirPath string) string
- func EncodeToml(fileName string, v interface{}) error
- func Exist(file string) bool
- func ListDir(path string) ([]string, error)
- func Map(path string) ([]byte, error)
- func MkDir(path string) error
- func MkDirIfNotExist(path string) error
- func RWMap(path string, size int) ([]byte, error)
- func RemoveDir(path string) error
- func Sync(data []byte) error
- func Unmap(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToml ¶
DecodeToml decodes data from file using toml format
func DirAppendSepa ¶
DirAppendSepa returns dir path end with file separator
func EncodeToml ¶
EncodeToml encodes data into file using toml format, encode data to tmp file, if success then rename tmp => target file
func MkDirIfNotExist ¶
MkDirIfNotExist creates given dir if it not exist
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.