Versions in this module Expand all Collapse all v0 v0.24.1 May 31, 2026 v0.24.0 May 30, 2026 Changes in this version + var ErrNoParser = errors.New("no parser matched") + func HasSuffixI(path, suffix string) bool + type CargoLock struct + func (c *CargoLock) Matches(path string) bool + func (c *CargoLock) Name() string + func (c *CargoLock) Parse(data []byte, path string) ([]Entry, error) + type Ecosystem string + const EcosystemCargo + const EcosystemGo + const EcosystemNPM + const EcosystemPyPI + const EcosystemRubyGems + func (e Ecosystem) String() string + type Entry struct + Direct bool + Ecosystem Ecosystem + File string + Name string + Version string + type File struct + Data []byte + Path string + type GemfileLock struct + func (g *GemfileLock) Matches(path string) bool + func (g *GemfileLock) Name() string + func (g *GemfileLock) Parse(data []byte, path string) ([]Entry, error) + type GoMod struct + func (g *GoMod) Matches(path string) bool + func (g *GoMod) Name() string + func (g *GoMod) Parse(data []byte, path string) ([]Entry, error) + type NPMLock struct + func (n *NPMLock) Matches(path string) bool + func (n *NPMLock) Name() string + func (n *NPMLock) Parse(data []byte, path string) ([]Entry, error) + type Parser interface + Matches func(repoRelPath string) bool + Name func() string + Parse func(data []byte, repoRelPath string) ([]Entry, error) + func DefaultParsers() []Parser + func NewCargoLock() Parser + func NewGemfileLock() Parser + func NewGoMod() Parser + func NewNPMLock() Parser + func NewPyPILock() Parser + type PyPILock struct + func (p *PyPILock) Matches(path string) bool + func (p *PyPILock) Name() string + func (p *PyPILock) Parse(data []byte, path string) ([]Entry, error) + type Result struct + Entries []Entry + Errors map[string]error + func ParseAll(parsers []Parser, files []File) Result