Versions in this module Expand all Collapse all v1 v1.3.3 Oct 2, 2014 v1.3.1 Aug 21, 2014 Changes in this version + var ToolDir = filepath.Join(runtime.GOROOT(), "pkg/tool/" + runtime.GOOS + "_" + runtime.GOARCH) + func ArchChar(goarch string) (string, error) + func IsLocalImport(path string) bool + type Context struct + BuildTags []string + CgoEnabled bool + Compiler string + GOARCH string + GOOS string + GOPATH string + GOROOT string + HasSubdir func(root, dir string) (rel string, ok bool) + InstallSuffix string + IsAbsPath func(path string) bool + IsDir func(path string) bool + JoinPath func(elem ...string) string + OpenFile func(path string) (r io.ReadCloser, err error) + ReadDir func(dir string) (fi []os.FileInfo, err error) + ReleaseTags []string + SplitPathList func(list string) []string + UseAllFiles bool + var Default Context = defaultContext() + func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Package, error) + func (ctxt *Context) ImportDir(dir string, mode ImportMode) (*Package, error) + func (ctxt *Context) MatchFile(dir, name string) (match bool, err error) + func (ctxt *Context) SrcDirs() []string + type ImportMode uint + const AllowBinary + const FindOnly + type NoGoError struct + Dir string + func (e *NoGoError) Error() string + type Package struct + AllTags []string + BinDir string + CFiles []string + CXXFiles []string + CgoCFLAGS []string + CgoCPPFLAGS []string + CgoCXXFLAGS []string + CgoFiles []string + CgoLDFLAGS []string + CgoPkgConfig []string + ConflictDir string + Dir string + Doc string + GoFiles []string + Goroot bool + HFiles []string + IgnoredGoFiles []string + ImportPath string + ImportPos map[string][]token.Position + Imports []string + MFiles []string + Name string + PkgObj string + PkgRoot string + Root string + SFiles []string + SrcRoot string + SwigCXXFiles []string + SwigFiles []string + SysoFiles []string + TestGoFiles []string + TestImportPos map[string][]token.Position + TestImports []string + XTestGoFiles []string + XTestImportPos map[string][]token.Position + XTestImports []string + func Import(path, srcDir string, mode ImportMode) (*Package, error) + func ImportDir(dir string, mode ImportMode) (*Package, error) + func (p *Package) IsCommand() bool