Documentation
¶
Overview ¶
Package helpers contains some helper functions which the HULK CL program needs
Index ¶
- func CheckDir(dir string) error
- func CheckExt(file string, exts []string) error
- func CheckFile(file string) error
- func CheckRequiredFlags(flags *pflag.FlagSet) error
- func CheckSTDIN() error
- func CollectJSONs(inputDir string, recursive bool) ([]string, error)
- func ErrorCheck(msg error)
- func FanOutUnbuffered(inputChannel chan uint64, numOutputChannels int) []chan uint64
- func FloatSlice2string(floatSlice []float64, sep string) string
- func MD5sum(data []uint64) [16]byte
- func Pow(a, b uint) uint
- func StartLogging(logFile string) *os.File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRequiredFlags ¶
a function to check for required flags
func CollectJSONs ¶
CollectJSONs is a function to find all JSON files in a directory and return a list of file names
func ErrorCheck ¶
func ErrorCheck(msg error)
a function to throw error to the log and exit the program
func FanOutUnbuffered ¶
FanOutUnbuffered is a helper function to set up a fanout concurrency pattern
func FloatSlice2string ¶
FloatSlice2string converts []float64 to a string, with a custom delimiter to separate slice values
func StartLogging ¶
StartLogging is a function to start the log...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.