package localdatasource

Import Path
	golang.org/x/pkgsite/internal/localdatasource (on go.dev)

Dependency Relation
	imports 12 packages, and imported by one package

Involved Source Files Package localdatasource implements an in-memory internal.DataSource used to load and display documentation for local modules that are not available via a proxy. Similar to proxydatasource, search and other tabs are not supported in this mode.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
DataSource implements an in-memory internal.DataSource used to display documentation locally. DataSource is not backed by a database or a proxy instance. GetLatestInfo is not implemented. GetModuleReadme is not implemented. GetNestedModules is not implemented. GetUnit returns information about a unit. Both the module path and package path must be known. GetUnitMeta returns information about a path. Load loads a module from the given local path. Loading is required before being able to display the module. LoadFromGOPATH loads a module from GOPATH using the given import path. The full path of the module should be GOPATH/src/importPath. If several GOPATHs exist, the module is loaded from the first one that contains the import path. Loading is required before being able to display the module. *T : golang.org/x/pkgsite/internal.DataSource func New() *DataSource
Package-Level Functions (total 2, in which 1 are exported)
New creates and returns a new local datasource that bypasses license checks by default.