Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { // SrcDirs represents the location of package sources. SrcDirs []SrcDir sync.Mutex // protects pkgs // contains filtered or unexported fields }
Project represents a gogo project. A gogo project has a simlar layout to a $GOPATH workspace. Each gogo project has a standard directory layout starting at the project root, which we'll refer too as $PROJECT.
$PROJECT/ - the project root $PROJECT/.gogo/ - used internally by gogo and identifies the root of the project. $PROJECT/src/ - base directory for the source of packages $PROJECT/bin/ - base directory for the compiled binaries
func NewProject ¶
NewProject returns a *Project if root represents a valid gogo project.
func (*Project) Bindir ¶
Bindir returns the top level directory representing the binary directory of this project.
func (*Project) ResolvePackage ¶
ResolvePackage resolves the import path to a Package.
type Resolver ¶
type Resolver interface { // Resolve returns a *Package representing the source for package path // filtered by GOOS and GOARCH. ResolvePackage(goos, goarch, path string) *pkgFuture }
Resolver resolves package import paths to Packages
type Spec ¶
type Spec struct {
// contains filtered or unexported fields
}
Spec represents a build specification.
type SrcDir ¶
type SrcDir struct {
// contains filtered or unexported fields
}
SrcDir represents a directory containing some Go source packages.
type Statistics ¶
Statistics records the various Durations
func (*Statistics) String ¶
func (s *Statistics) String() string
func (*Statistics) Total ¶
func (s *Statistics) Total() time.Duration
Click to show internal directories.
Click to hide internal directories.