Imports #
"fmt"
"strings"
"fmt"
"strings"
const Constconst Fieldconst Funcconst Invalid Kind = iotaconst Methodvar PackageSymbols = map[string][]Symbol{...}const Typeconst Varvar versions [30]stringA Kind indicates the kind of a symbol: function, variable, constant, type, and so on.
type Kind int8A Version represents a version of Go of the form "go1.%d".
type Version int8type Symbol struct {
Name string
Kind Kind
Version Version
}HasPackage reports whether the specified package path is part of the standard library's public API.
func HasPackage(path string) boolSplitField splits the field symbol name into type and field components. It must be called only on Field symbols. Example: "File.Package" -> ("File", "Package")
func (sym *Symbol) SplitField() (typename string, name string)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")
func (sym *Symbol) SplitMethod() (ptr bool, recv string, name string)func (kind Kind) String() stringString returns a version string of the form "go1.23", without allocating.
func (v Version) String() stringfunc init()Generated with Arrow