mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
18 lines
422 B
Go
18 lines
422 B
Go
/*
|
|
Package golang provides a concrete Cataloger implementation for go.mod files.
|
|
*/
|
|
package golang
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/cataloger/common"
|
|
)
|
|
|
|
// NewGoModCataloger returns a new Go module cataloger object.
|
|
func NewGoModCataloger() *common.GenericCataloger {
|
|
globParsers := map[string]common.ParserFn{
|
|
"**/go.mod": parseGoMod,
|
|
}
|
|
|
|
return common.NewGenericCataloger(nil, globParsers, "go-cataloger")
|
|
}
|