imports

package
v0.0.0-...-8adebf7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(pkgs []string, format string) ([]byte, error)

Format takes a slice of packages and formats it.

func Parse

func Parse(file string) ([]string, error)

Parse takes a Go file path and parses its import paths.

func Path

func Path(dir string) (string, error)

Path returns the import path of a package directory. It does so via $GOPATH.

func Scan

func Scan(path string, pkg, testfiles, all bool) ([]string, error)

Scan takes a directory and scans it for import dependencies.

func Valid

func Valid(path string) bool

Valid takes an import package path and determines if its valid.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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