golang

package
v3.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoModGraph

func GoModGraph(ctx context.Context, modfile *model.File) *model.DepGraph

GoModGraph 调用 go mod graph 解析依赖

func ParseGomod

func ParseGomod(file *model.File) *model.DepGraph

ParseGomod 解析go.mod文件

func ParseGopkgLock

func ParseGopkgLock(f *model.File) *model.DepGraph

ParseGopkgLock 解析Gopkg.lock文件

func ParseGopkgToml

func ParseGopkgToml(f *model.File) *model.DepGraph

ParseGopkgToml 解析Gopkg.toml文件

func ParseGosum

func ParseGosum(file *model.File) *model.DepGraph

ParseGosum 解析go.sum文件

Types

type GopkgLock

type GopkgLock struct {
	Projects []struct {
		Name    string `json:"name"`
		Version string `json:"version"`
	} `toml:"projects"`
}

type GopkgToml

type GopkgToml struct {
	Constraint []struct {
		Name    string `json:"name"`
		Version string `json:"version"`
	} `toml:"constraint"`
}

type Sca

type Sca struct{}

func (Sca) Filter

func (sca Sca) Filter(relpath string) bool

func (Sca) Language

func (sca Sca) Language() model.Language

func (Sca) Sca

func (sca Sca) Sca(ctx context.Context, parent *model.File, files []*model.File, call model.ResCallback)

Jump to

Keyboard shortcuts

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