helper

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Freeze

func Freeze()

func Get

func Get(pkg *Package) error

func GetRecursively added in v0.0.9

func GetRecursively(pkgs []*Package, requirementFile string)

func IgnoreGlobal

func IgnoreGlobal()

Types

type Package

type Package struct {
	// package name
	Package string `yaml:"package"`
	// repo url
	Repo string `yaml:"repo"`
	// commit hash
	Version string `yaml:"version"`
	// isGlobal, install the package in global path
	Global bool `yaml:"global"`
	// contains vendor dir
	Vendor bool
	// isSelf
	Self bool
	// SrcPath
	SrcPath string
}

Package define the structure of a package

func LoadPackage

func LoadPackage(line string) (*Package, error)

func LoadPackagesFromFile

func LoadPackagesFromFile(filename string) ([]*Package, error)

func (Package) RealPath added in v0.0.9

func (p Package) RealPath() string

func (Package) String

func (p Package) String() string

Jump to

Keyboard shortcuts

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