type golang.org/x/pkgsite/internal.Unit
31 uses
golang.org/x/pkgsite/internal (current package)
datasource.go#L20: GetUnit(ctx context.Context, pathInfo *UnitMeta, fields FieldSet, bc BuildContext) (_ *Unit, err error)
discovery.go#L152: Units []*Unit
discovery.go#L156: func (m *Module) Packages() []*Unit {
discovery.go#L157: var pkgs []*Unit
nonredist.go#L19: func (u *Unit) RemoveNonRedistributableData() {
unit.go#L45: type Unit struct {
golang.org/x/pkgsite/internal/fetch
unit.go#L20: d *licenses.Detector) []*internal.Unit {
unit.go#L38: var units []*internal.Unit
unit.go#L49: dir := &internal.Unit{
golang.org/x/pkgsite/internal/frontend
doc.go#L23: func renderDocParts(ctx context.Context, u *internal.Unit, docPkg *godoc.Package,
doc.go#L43: func sourceFiles(u *internal.Unit, docPkg *godoc.Package) []*File {
main.go#L251: func readmeContent(ctx context.Context, u *internal.Unit) (_ *Readme, err error) {
main.go#L262: func getHTML(ctx context.Context, u *internal.Unit, docPkg *godoc.Package,
readme.go#L66: func ProcessReadme(ctx context.Context, u *internal.Unit) (_ *Readme, err error) {
golang.org/x/pkgsite/internal/godoc
render.go#L210: func RenderFromUnit(ctx context.Context, u *internal.Unit) (_ *dochtml.Parts, err error) {
golang.org/x/pkgsite/internal/localdatasource
datasource.go#L111: func (ds *DataSource) GetUnit(ctx context.Context, pathInfo *internal.UnitMeta, fields internal.FieldSet, bc internal.BuildContext) (_ *internal.Unit, err error) {
golang.org/x/pkgsite/internal/postgres
unit.go#L245: func (db *DB) GetUnit(ctx context.Context, um *internal.UnitMeta, fields internal.FieldSet, bc internal.BuildContext) (_ *internal.Unit, err error) {
unit.go#L248: u := &internal.Unit{UnitMeta: *um}
unit.go#L425: func (db *DB) getUnitWithAllFields(ctx context.Context, um *internal.UnitMeta, bc internal.BuildContext) (_ *internal.Unit, err error) {
unit.go#L500: u internal.Unit
golang.org/x/pkgsite/internal/proxydatasource
datasource.go#L182: func (ds *DataSource) getUnit(ctx context.Context, fullPath, modulePath, version string, bc internal.BuildContext) (_ *internal.Unit, err error) {
details.go#L18: func (ds *DataSource) GetUnit(ctx context.Context, um *internal.UnitMeta, field internal.FieldSet, bc internal.BuildContext) (_ *internal.Unit, err error) {
golang.org/x/pkgsite/internal/testing/sample
sample.go#L188: m.Units = []*internal.Unit{UnitForModuleRoot(mi)}
sample.go#L210: func UnitForModuleRoot(m *internal.ModuleInfo) *internal.Unit {
sample.go#L211: u := &internal.Unit{
sample.go#L229: func UnitForPackage(path, modulePath, version, name string, isRedistributable bool) *internal.Unit {
sample.go#L233: return &internal.Unit{
sample.go#L242: func AddPackage(m *internal.Module, pkg *internal.Unit) *internal.Module {
sample.go#L300: func AddUnit(m *internal.Module, u *internal.Unit) {
sample.go#L344: func UnitEmpty(path, modulePath, version string) *internal.Unit {
sample.go#L345: return &internal.Unit{
 |
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. |