Documentation
¶
Index ¶
- func CheckDirectories(directories ...string) error
- func CopyFile(src string, dest string) error
- func DeleteFilesByExtension(dir string, exts []string) error
- func ExecCommand(command string, args ...string) (string, error)
- func FileCheck(dir string, files_names ...string) ([]fs.DirEntry, error)
- func FileWrite(pathFile string, data bytes.Buffer) error
- func FindFilesWithNonZeroSize(dir string, filenames []string) error
- func FindFirstFileWithExtension(dir, extension string) (string, error)
- func GetRootFiles(dir, ext string, onlyNamesWithCapitalLetter bool) (out []string, err error)
- func PrintError(messages ...string)
- func PrintInfo(messages ...string)
- func PrintOK(messages ...string)
- func PrintWarning(messages ...string)
- func ReadAssets(Dir string, Html, Css, Js, Svg out) error
- func ReadFiles(dir, ext string, out *bytes.Buffer) error
- func ShowErrorAndExit(message any)
- func TextCount(filePath string, textSearchInContent string) int
- func TextMinify(text *string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDirectories ¶
func DeleteFilesByExtension ¶
ej: gotools.DeleteFilesByExtension(main_folder\files, []string{".js", ".css", ".wasm"})
func FileWrite ¶
pathFile ej: "theme/index.html" data ej: *bytes.Buffer NOTA: la data del buf sera eliminada después de escribir el archivo
func GetRootFiles ¶
func PrintError ¶
func PrintError(messages ...string)
func PrintWarning ¶
func PrintWarning(messages ...string)
func ReadAssets ¶
func ShowErrorAndExit ¶
func ShowErrorAndExit(message any)
func TextMinify ¶
func TextMinify(text *string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.