Source File
unit.go
Belonging Package
golang.org/x/pkgsite/internal
package internal
import (
)
func ( *UnitMeta) () bool {
return .ModulePath == .Path
}
type Unit struct {
UnitMeta
Readme *Readme
BuildContexts []BuildContext // set only on read
Documentation []*Documentation // at most one on read
Subdirectories []*PackageMeta
Imports []string
LicenseContents []*licenses.License
Symbols map[BuildContext][]*Symbol
NumImports int
NumImportedBy int
SymbolHistory map[string]string
}
const MinimalFields FieldSet = 0
const StringFieldMissing = "!MISSING"
const (
WithMain FieldSet = 1 << iota
WithImports
WithLicenses
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |