# Functions
Abs returns the absolute value of x.
CheckErr checks if an error is not null, and exits if it is not null.
ClearFinishedRepos deletes the stored repos that have already been analyzed.
ClearRepoStorage deletes all stored repos from the disk.
ConstructSearchURL serializes its parameters into a search URL.
Dig into the secrets of a repo.
DirSize gets the size of a diretory.
DownloadRawFile downloads files from the githubusercontent CDN.
Entropy calculates the Shannon entropy of a string.
GetFileLines takes a file path and returns its lines, stringified.
GetFlags is a singleton that returns the program flags.
GetLine grabs the full line of the first instance of a pattern within it.
GetMatchesForString runs pattern matching and scoring checks on the given string and returns the matches.
GetRawGistPage gets the source code for a Gist.
GetRawURLForSearchResult returns a raw data URL for a RepoSearchResult.
GetRepoURLForSearchResult returns the URL of the repo depending on RepoSearchResult source.
GetResultLink returns a link to the result.
GrabCSRFToken grabs the CSRF token from a GitHub page.
GrabCSRFTokenBody grabs the CSRF token from a GitHub page.
HandleOTPCode returns a user's OTP code for authenticating with Github by searching config values, then CLI arguments, then prompting the user for input.
LoginToGitHub logs into GitHub with the given credentials and returns an HTTTP client.
MatchAPIKeys takes a string and checks if it contains API keys using pattern matching and entropy checking.
MatchCustomRegex matches a string against a slice of regexes.
MatchFileExtensions matches interesting file extensions.
MatchKeywords takes a string and checks if it contains sensitive information using pattern matching.
PrintContextLine pretty-prints the line of a Match, with the result highlighted.
No description provided by the author
PrintPatternLine pretty-prints the regex used to find the leak.
RepoIsUnpopular uses stars/forks/watchers to determine the popularity of a repo.
ScanAndPrintResult scans and prints information about a search result.
ScanDiff finds secrets in the diff between two Git trees.
Search Everything.
SearchGist searches Gist results for the given query.
SearchGitHub searches GitHub code results for the given query.
No description provided by the author
# Variables
No description provided by the author
# Structs
Flags stores the program options.
GitHubCredentials stores a GitHub username and password.
Line represents a text line, the context for a Match.
Match represents a keyword/API key match.
No description provided by the author
RepoSearchResult represents a result in GitHub/Gist code search.
ResultScan is the final scan result.
SearchOptions are the options that the GitHub search will use.