Documentation
¶
Index ¶
- func AppendToContent(filename string, data string) (string, error)
- 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 DirLength(dir string) int
- func ExecutionWithStd(cmd string) (string, error)
- 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 GetCurrentTime() string
- func GetDirFileInFolder(foldername string, filename string) []string
- func GetFileContent(filename string) string
- func GetFileNames(dir string, ext string) []string
- func GetFileSize(src string) float64
- func GetHomeFolder(foldername string) string
- func GetLengthFile(filename string) int
- func GetOSEnv(name string) string
- func GetTS() string
- func InputCmd(Cmd string) string
- func IsJSON(str string) bool
- func JoinURL(raw string, suffix string) string
- func ListFileInFolder(foldername string) []string
- func ListFilesWithPattern(foldername string, pattern string) []string
- func LoadFile(filename string) (lines []string)
- func MakeDir(folder string)
- func MoveFolder(src string, dest string)
- func NormalizePath(path string) string
- func PromptConfirm(s string) bool
- func ReadingFileUnique(filename string) []string
- func ReadingLines(filename string) []string
- func RuncmdWithLabel(cmd string, label string) (string, error)
- func SendWithDocument(bot *tgbotapi.BotAPI, chatID int64, filepath string) error
- func StartWithNum(raw string) bool
- func StrToInt(data string) int
- func StripName(raw string) string
- func WriteToFile(filename string, data string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToContent ¶ added in v1.0.1
AppendToContent append string to a file
func ChunkFileByPart ¶ added in v1.0.1
ChunkFileByPart chunk file to multiple part
func ChunkFileBySize ¶ added in v1.0.1
ChunkFileBySize chunk file to multiple part
func ExecutionWithStd ¶
func ExpandLength ¶ added in v1.0.1
ExpandLength make slice to length
func FileExists ¶ added in v1.0.1
FileExists check if file is exist or not
func FolderExists ¶ added in v1.0.1
FolderExists check if file is exist or not
func GetCurrentTime ¶
func GetCurrentTime() string
func GetDirFileInFolder ¶
func GetFileContent ¶ added in v1.0.1
GetFileContent Reading file and return content of it
func GetFileNames ¶ added in v1.0.1
GetFileNames get all file name with extension
func GetFileSize ¶ added in v1.0.1
GetFileSize get file size of a file in GB
func GetHomeFolder ¶
func GetLengthFile ¶
func ListFileInFolder ¶
func ListFilesWithPattern ¶
func PromptConfirm ¶ added in v1.0.1
func ReadingFileUnique ¶ added in v1.0.1
ReadingFileUnique Reading file and return content as []string
func ReadingLines ¶ added in v1.0.1
ReadingLines Reading file and return content as []string
func SendWithDocument ¶ added in v1.0.4
func StartWithNum ¶ added in v1.0.1
StartWithNum check if string start with number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.