Documentation
¶
Index ¶
- func AppendUnique[T comparable](out *[]T, already Set[T], v T) bool
- func DownloadSBOMFromURL(url string) ([]byte, error)
- func HandleURL(path string) (string, string, error)
- func IsBlank(s string) bool
- func IsDir(path string) bool
- func IsGit(in string) bool
- func IsURL(in string) bool
- func RemoveEmptyStrings(input []string) []string
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func AppendUnique[T comparable](out *[]T, already Set[T], v T) bool
AppendUnique adds the value v to the slice pointed to by out **only if** it hasn't been seen before. "already" tracks which values were already added
func DownloadSBOMFromURL ¶
func RemoveEmptyStrings ¶
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
Set[T] is a generic "set" of values of type T. Internally it's a map[T]struct{}
Click to show internal directories.
Click to hide internal directories.