package
0.0.0-20240409024651-c4af43db5027
Repository: https://github.com/ossf/package-analysis.git
Documentation: pkg.go.dev

# Functions

CombineRegexp creates a single regexp by joining the argument regexps together using the | operator.
CommaSeparatedFlags creates a struct which can be used with the Golang flag library, to allow passing a comma-separated list of strings as a single command-line argument.
CreateAndWriteTempFile writes a file in the directory specified by writeBufferFolder.
ExtractArchiveFile extracts a .tar.gz / .tgz file located at archivePath, using outputDir as the root of the extracted files.
FloatEquals compares two floats and returns true if they are both within absTol of each other, or are both NaN.
JSONEquals compares two byte sequences containing JSON data and returns true if 1) both j1 and j2 contain valid JSON data, and 2) the JSON objects that they represent are equal.
LastNBytes returns the last n bytes from b.
No description provided by the author
RemoveDuplicates takes a slice and returns a new slice with only the unique elements from the input slice.
No description provided by the author
SHA256Hash returns the SHA256 hashsum of a file.
Transform applies the given transform function fn: T -> R to each element t of slice ts and returns a slice containing the corresponding results.
WriteFile writes the given file contents to the given path.

# Structs

No description provided by the author