Documentation
¶
Index ¶
- func AddStringContendFromDirAndExtension(dir, ext string, out *string) error
- func AddStringContentFromFile(file_path string, out *string) error
- func CopyFile(src string, dest string) error
- func DeleteFilesByExtension(dir string, exts []string) error
- func ExtractTwoPointArgument(option string, field *string) error
- func FileCheck(dir string, files_names ...string) ([]fs.DirEntry, error)
- func FileWrite(file_name string, data *bytes.Buffer)
- func FindFile(dir, file_name string) (content string, err error)
- func FindFilesWithNonZeroSize(dir string, filenames []string) error
- func FindFirstFileWithExtension(dir, extension string) (content string, err error)
- func GetNamesFromDirectoryExtensionAndPattern(dir, ext, pattern string) (out []string, err error)
- func GetNamesFromFileAndPattern(file_path, pattern string) (out []string, err error)
- func ReadFile(file string, buffer_out *bytes.Buffer) error
- func ReadFiles(dir, ext string, buffer_out *bytes.Buffer) (err error)
- func ShowErrorAndExit(errorMessage string)
- func TextExists(file_path string, text_search_or_path_content string) int
- func TextMinify(text *string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStringContendFromDirAndExtension ¶ added in v0.0.12
ej: dir/files, .svg
func AddStringContentFromFile ¶ added in v0.0.12
func DeleteFilesByExtension ¶ added in v0.0.8
ej: gotools.DeleteFilesByExtension(main_folder\files, []string{".js", ".css", ".wasm"})
func ExtractTwoPointArgument ¶ added in v0.0.2
func FindFirstFileWithExtension ¶ added in v0.0.7
func GetNamesFromDirectoryExtensionAndPattern ¶ added in v0.0.9
ej files, .go, `Input: input\.(\w+)\(\)`
func GetNamesFromFileAndPattern ¶ added in v0.0.6
ej files/file.txt, `Input: input\.(\w+)\(\)`
func ShowErrorAndExit ¶ added in v0.0.2
func ShowErrorAndExit(errorMessage string)
func TextExists ¶ added in v0.0.4
ej: gotools.TextExists(index.html", "info_id") gotools.TextExists(static\main.js", "js\code.js")
func TextMinify ¶ added in v0.0.10
func TextMinify(text *string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.