Documentation ¶
Index ¶
- type GoBuilder
- func (builder *GoBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *GoBuilder) Build(m module.Module, force bool) error
- func (builder *GoBuilder) DiscoverModules(dir string) ([]module.Config, error)
- func (builder *GoBuilder) Initialize() error
- func (builder *GoBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *GoBuilder) IsModule(target string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoBuilder ¶
type GoBuilder struct { GoCmd string GoVersion string // dep DepCmd string DepVersion string // glide GlideCmd string GlideVersion string // godep GodepCmd string GodepVersion string // govendor GovendorCmd string GovendorVersion string // vndr VndrCmd string VndrVersion string // gdm GdmCmd string GdmVersion string }
GoBuilder implements Builder for Golang projects
func (*GoBuilder) Analyze ¶
func (builder *GoBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
Analyze traces imports and then looks up revisions in lockfiles
func (*GoBuilder) DiscoverModules ¶
DiscoverModules walks subdirectories for a Go file with `package main`.
func (*GoBuilder) Initialize ¶
Initialize collects metadata on Go, Dep, Glide, Godep, Govendor, and Vndr binaries.
Click to show internal directories.
Click to hide internal directories.