Documentation ¶
Index ¶
- func CopyFile(originalPath string, targetPath string) error
- func DirExistOrCreate(dirName string) (err error)
- func ErrorRecover(message string)
- func FileExist(path string) bool
- func FileExistOrCreate(fileName string) (err error)
- func GetDirFileNames(dirName string) (names []string, err error)
- func GetDirFileNames2(dirName string) (names []string, err error)
- func GetDirsNames(dirName string) (names []string, err error)
- func GetDirsNames2(dirName string) (names []string, err error)
- func GetNumberBool(value bool) float64
- func InterfaceToStruct(object interface{}, result interface{}) (err error)
- func ReadFile(filePath string) (content string, err error)
- func ReadFileTail(filename string, n int) ([]string, error)
- func ReadFileToObject(filePath string, object any) (err error)
- func ReadFilekeyToObject(filePath, key string, object any) (err error)
- func RemoveAll(dirName string) (err error)
- func RemoveFile(dirName string) (err error)
- func ToJson(object interface{}) (result string, err error)
- func ToJson2(object interface{}) (result string)
- func ToJson3(object interface{}) (result string)
- func WriteObjectToFile(filename string, object any) (err error)
- func WriteObjectToFile2(filename string, object any) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirExistOrCreate ¶
func ErrorRecover ¶
func ErrorRecover(message string)
func FileExistOrCreate ¶
func GetDirFileNames ¶
func GetDirFileNames2 ¶
func GetDirsNames ¶
func GetDirsNames2 ¶
func GetNumberBool ¶
func InterfaceToStruct ¶
func InterfaceToStruct(object interface{}, result interface{}) (err error)
func ReadFileToObject ¶
func ReadFilekeyToObject ¶
func RemoveFile ¶
func WriteObjectToFile ¶
func WriteObjectToFile2 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.