gotools

package module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 7 Imported by: 1

README

gotools

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFilesByExtension added in v0.0.8

func DeleteFilesByExtension(dir string, exts []string) error

ej: gotools.DeleteFilesByExtension(main_folder\files, []string{".js", ".css", ".wasm"})

func ExtractTwoPointArgument added in v0.0.2

func ExtractTwoPointArgument(option string, field *string) error

func FindFile added in v0.0.7

func FindFile(dir, file_name string) (content string, err error)

func FindFilesWithNonZeroSize

func FindFilesWithNonZeroSize(dir string, filenames []string) error

func FindFirstFileWithExtension added in v0.0.7

func FindFirstFileWithExtension(dir, extension string) (content string, err error)

func GetNamesFromFileAndPattern added in v0.0.6

func GetNamesFromFileAndPattern(file_path, pattern string) (out []string)

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

func TextExists(file_path string, text_search_or_path_content string) int

ej: gotools.TextExists(index.html", "info_id") gotools.TextExists(static\main.js", "js\code.js")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL