golang

package
v0.0.0-...-d3ccc4f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVendorDir = "vendor"
)

Variables

This section is empty.

Functions

func CreateLocalGoPath

func CreateLocalGoPath(log *log.Logger, flags *GoPathFlags) error

CreateLocalGoPath creates a local .gobuild folder with a GOPATH folder structure in it.

func Flatten

func Flatten(log *log.Logger, flags *FlattenFlags) error

Flatten copies all directories found in the given vendor directory to the GOPATH and flattens all vendor directories found in the GOPATH.

func Get

func Get(log *log.Logger, flags *GetFlags) error

Get executes a `go get` with a cache support.

func GetVendorDir

func GetVendorDir(dir string) (string, error)

func Vendor

func Vendor(log *log.Logger, flags *VendorFlags) error

Get executes a `go get` with a cache support.

Types

type FlattenFlags

type FlattenFlags struct {
	VendorDir string
	TargetDir string // Defaults to $GOPATH/src
	NoRemove  bool
}

type GetFlags

type GetFlags struct {
	Package string
}

type GoPathFlags

type GoPathFlags struct {
	Package string // If set, use this package instead of the origin URL from the local repo
}

type VendorFlags

type VendorFlags struct {
	Package   string
	VendorDir string
}

Jump to

Keyboard shortcuts

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