# Functions
CreateDir creates a directory if it does not exist, returning the final normalized directory as a result.
CreateFileWithDir creates a file, relative to a directory, returning the final normalized path as a result.
No description provided by the author
FileExists returns true if a path exists.
Float64ToTime takes a float64 as number of seconds since unix epoch and returns time.Time
example field where this is used (expires field):
https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HammingDistance calculates the number of differing bits between two byte slices.
IpsInCIDR returns a list of usable IP addresses in a given CIDR block excluding network and broadcast addresses for CIDRs larger than /31.
No description provided by the author
LeftTrucate a string if its more than max.
MoveFile moves a file from a to b.
ParsePerceptionHash converts a perception hash string "p:<hex>" to a byte slice.
No description provided by the author
SafeFileName takes a string and returns a string safe to use as a file name.
ShuffleStr shuffles a slice of strings.
SliceHasInt checks if a slice has an int.
SliceHasStr checks if a slice has a string.
UniqueIntSlice returns a slice of unique ints.
# Structs
HammingGroup represents a hash -> group assignment used for inmemory hammingdistance calulations.