internal

package
v0.0.0-...-63db9e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName = "govulners"

note: do not change this

View Source
const DBUpdateURL = "https://toolbox-data.nextlinux.io/govulners/databases/listing.json"

Variables

This section is empty.

Functions

func HasAnyOfPrefixes

func HasAnyOfPrefixes(input string, prefixes ...string) bool

HasAnyOfPrefixes returns an indication if the given string has any of the given prefixes.

func HasAnyOfSuffixes

func HasAnyOfSuffixes(input string, suffixes ...string) bool

HasAnyOfSuffixes returns an indication if the given string has any of the given suffixes.

func IsPipedInput

func IsPipedInput() (bool, error)

IsPipedInput returns true if there is no input device, which means the user **may** be providing input via a pipe.

func MatchCaptureGroups

func MatchCaptureGroups(regEx *regexp.Regexp, str string) map[string]string

MatchCaptureGroups takes a regular expression and string and returns all of the named capture group results in a map.

Types

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet() StringSet

func NewStringSetFromSlice

func NewStringSetFromSlice(start []string) StringSet

func (StringSet) Add

func (s StringSet) Add(i string)

func (StringSet) Contains

func (s StringSet) Contains(i string) bool

func (StringSet) Remove

func (s StringSet) Remove(i string)

func (StringSet) ToSlice

func (s StringSet) ToSlice() []string

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL