package stdlib
Import Path
golang.org/x/tools/internal/stdlib (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
deps.go
import.go
manifest.go
Package stdlib provides a table of all exported symbols in the
standard library, along with the version at which they first
appeared. It also provides the import graph of std packages.
Package-Level Type Names (total 4, in which 3 are exported)
A Kind indicates the kind of a symbol:
function, variable, constant, type, and so on.
( Kind) String() string
Kind : expvar.Var
Kind : fmt.Stringer
Kind : context.stringer
Kind : runtime.stringer
const Const
const Field
const Func
const Invalid
const Method
const Type
const Var
Kind Kind
Name string
Signature provides the type of a function (defined only for Kind=Func).
Imported types are denoted as pkg.T; pkg is not fully qualified.
TODO(adonovan): use an unambiguous encoding that is parseable.
Example2:
func[M ~map[K]V, K comparable, V any](m M) M
func(fi fs.FileInfo, link string) (*Header, error)
// if Kind == stdlib.Func
// Go version that first included the symbol
SplitField splits the field symbol name into type and field
components. It must be called only on Field symbols.
Example: "File.Package" -> ("File", "Package")
SplitMethod splits the method symbol name into pointer, receiver,
and method components. It must be called only on Method symbols.
Example: "(*Buffer).Grow" -> (true, "Buffer", "Grow")
Package-Level Functions (total 5, in which 3 are exported)
Dependencies returns the set of all dependencies of the named
standard packages, including the initial package,
in a deterministic topological order.
The dependencies of an unknown package are the empty set.
The graph is built into the application and may differ from the
graph in the Go source tree being analyzed by the application.
HasPackage reports whether the specified package path is part of
the standard library's public API.
Imports returns the sequence of packages directly imported by the
named standard packages, in name order.
The imports of an unknown package are the empty set.
The graph is built into the application and may differ from the
graph in the Go source tree being analyzed by the application.
Package-Level Variables (total 3, in which 1 is exported)
var PackageSymbols map[string][]Symbol
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)