Documentation ¶
Index ¶
- func AppendToContent(filename string, data string) (string, error)
- func BannerF(format string, data string)
- func BlockF(name string, data string)
- func ChunkFileByPart(source string, chunk int) [][]string
- func ChunkFileBySize(source string, chunk int) [][]string
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func DebugF(format string, args ...interface{})
- func DirLength(dir string) int
- func ErrorF(format string, args ...interface{})
- func ExpandLength(list []string, length int) []string
- func FileExists(filename string) bool
- func FileLength(filename string) int
- func FolderExists(foldername string) bool
- func GenHash(text string) string
- func GetCurrentDay() string
- func GetFileContent(filename string) string
- func GetFileNames(dir string, ext string) []string
- func GetFileSize(src string) float64
- func GetOSEnv(name string) string
- func GetTS() string
- func GoodF(format string, args ...interface{})
- func InforF(format string, args ...interface{})
- func InitLog(options *libs.Options)
- func IsJSON(str string) bool
- func JoinURL(raw string, suffix string) string
- func MakeDir(folder string)
- func MoveFolder(src string, dest string)
- func NormalizePath(path string) string
- func PrintLine()
- func PromptConfirm(s string) bool
- func ReadingFileUnique(filename string) []string
- func ReadingLines(filename string) []string
- func StartWithNum(raw string) bool
- func StrToInt(data string) int
- func StripName(raw string) string
- func WarningF(format string, args ...interface{})
- func WriteToFile(filename string, data string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToContent ¶
AppendToContent append string to a file
func ChunkFileByPart ¶
ChunkFileByPart chunk file to multiple part
func ChunkFileBySize ¶
ChunkFileBySize chunk file to multiple part
func ExpandLength ¶
ExpandLength make slice to length
func FolderExists ¶
FolderExists check if file is exist or not
func GetFileContent ¶
GetFileContent Reading file and return content of it
func GetFileNames ¶
GetFileNames get all file name with extension
func PromptConfirm ¶
func ReadingFileUnique ¶
ReadingFileUnique Reading file and return content as []string
func ReadingLines ¶
ReadingLines Reading file and return content as []string
func StartWithNum ¶
StartWithNum check if string start with number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.