imports

package
v0.0.0-...-d92a64e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2013 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

how to treat any given "import" that is attempting to be packaged

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPkgSource

func GetPkgSource(pkg string, root string) error

Call out to `go get`. root will be set as GOPATH

Types

type Imports

type Imports []*build.Package

func FindImports

func FindImports(basepath string) (Imports, error)

Scan basepath and find the import'able paths relative to it

func FindImportsDefault

func FindImportsDefault() (pkgs Imports, err error)

Get the imports from the default GOROOT and GOPATH

func (Imports) Len

func (i Imports) Len() int

func (Imports) String

func (i Imports) String() string

func (Imports) Swap

func (i Imports) Swap(k, j int)

Jump to

Keyboard shortcuts

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