Documentation
¶
Index ¶
- Variables
- func CleanUp(path string)
- func FormatLockKeyVal(kv string) string
- func IndexOf(array []string, s string) int
- func ParserEnabled(parser string, enabledParsers *[]string) bool
- func SplitContentsByEmptyLine(contents string) []string
- func StringSliceContains(s []string, e string) bool
- func ToTitle(str string) string
- func TrimUntilLayer(location model.Location) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ParserNames = []string{
"apk",
"deb",
"java",
"npm",
"pnpm",
"php",
"python",
"gem",
"rpm",
"dart",
"nuget",
"go",
"rust-crate",
"conan",
"hackage",
"pod",
"hex",
"portage",
"alpm",
"gradle",
"nix",
}
ParserNames slice of supported parser names
Functions ¶
func FormatLockKeyVal ¶
FormatLockKeyVal formats .lock Key Value Data String
func ParserEnabled ¶
ParserEnabled checks if all or a specific parser is enabled
func SplitContentsByEmptyLine ¶ added in v1.5.0
func StringSliceContains ¶
StringSliceContains checks if a string slice contains specified string
func TrimUntilLayer ¶
TrimUntilLayer Returns file path without layer hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.