Documentation ¶
Index ¶
- Constants
- func AskForConfirmation(message string) bool
- func CreateDir(dirname string)
- func DirectoryExists(directoryPath string) bool
- func ExpandIntegerList(str string) []uint16
- func FileExists(filename string) bool
- func GetDistributionStats(values []int) (mean float64, min, max int, stdDev float64)
- func GetFilename(filePath string, withExtension bool) string
- func GetFilesInPath(inputDirectory, extensionWithoutDot string) []string
- func GetPcapFiles(input string) []string
- func IsZipFile(filename string) (isZipFile bool)
- func PrintMemUsage()
- func Unzip(filename string) (unzippedFileName string)
Constants ¶
View Source
const MaxUint16 = ^uint16(0)
View Source
const MaxUint16AsUint32 = uint32(MaxUint16)
View Source
const MaxUint32 = ^uint32(0)
Variables ¶
This section is empty.
Functions ¶
func AskForConfirmation ¶
Ask User for Confirmation From https://gist.github.com/albrow/5882501
func DirectoryExists ¶
DirectoryExists returns whether a Directory exists
func ExpandIntegerList ¶
ExpandIntegerList returns from a string all integers in this range e.g. 2-5,12 will return 2,3,4,5,12
func GetDistributionStats ¶
func GetFilename ¶
Returns the filename of a path.
func GetFilesInPath ¶
GetFilesInPath returns the complete path to all files in the inputDirectory which do have the required extension. Skips subdirectories
func GetPcapFiles ¶
GetPcapFiles returns all pcap files specified
func PrintMemUsage ¶
func PrintMemUsage()
PrintMemUsage outputs the current, total and OS memory being used. As well as the number of garage collection cycles completed. Adopted from: https://golangcode.com/print-the-current-memory-usage/
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.