Versions in this module Expand all Collapse all v0 v0.0.1 Sep 26, 2019 Changes in this version + func ByteCountIEC(b int64) string + func ByteCountSI(b int64) string + func CompareData(data, toFind string) bool + func CompareDataInsensitive(data, toFindLower string) bool + func CountLine(filename string) int + func CreateJSON(values ...string) string + func ExportMetrics() []byte + func ExtractString(data *string, first, last string) string + func FilterFromFile(filename string, maxLinesToSearch int, toFilter string, reverse bool) string + func FilterFromFileCompress(filename string, maxLinesToSearch int, toFilter string, reverse bool) []byte + func FreeSystemMemory(gcSleep *int) + func GetFileDate(filepath string) string + func GetFileModification(filepath string) int64 + func GetFileSizeC(filename string) int64 + func IsASCII(s string) bool + func IsDir(path string) bool + func IsFile(path string) bool + func IsUpper(str string) bool + func Join(strs ...string) string + func JoinArray(data []string) string + func Lz4CompressData(fileContent string) ([]byte, int) + func Lz4DecompressData(compressedData []byte, l int) + func ParseDate2(strdate string) int64 + func Random(min int, max int) int + func ReadAllFile(filePath string) string + func ReadAllFileInArray(filePath string) []string + func ReadFile(filename string, lines int) []byte + func ReadFileContentC(filename string) string + func ReadFilePath(path string) []string + func RecognizeFormat(input string) (string, string) + func RemoveElement(data []string, j []int) []string + func RemoveFromString(s []byte, i int) []byte + func RemoveWhiteSpaceArray(data []string) []string + func RemoveWhiteSpaceString(str string) string + func RetrieveLines(fileContet string) int + func SecureRequest(ctx *fasthttp.RequestCtx, ssl bool) + func SetDebugLevel(level string) log.Level + func SpellCheck(filepath, wrongword string) string + func SplitStringInArray(data string) []string + func StartCPUProfiler(file *os.File) + func ValidateInjection(payload string, mustContain []string) bool + func VerifyCert(filePath, pub, priv string) bool + func VerifyFilesExists(filePath string, files []string) bool + func VerifyIfPresent(content string, entryList []string) bool + type Monitor struct + Alloc uint64 + Frees uint64 + GCCPUFraction float64 + LiveObjects uint64 + MCacheInuse uint64 + Mallocs uint64 + NumGC uint32 + NumGoroutine int + PauseTotalNs uint64 + Sys uint64 + TotalAlloc uint64