Imports #
"fmt"
"strings"
"fmt"
"strings"
const Const
const Field
const Func
const Invalid Kind = iota
const Method
var PackageSymbols = map[string][]Symbol{...}
const Type
const Var
var versions [30]string
A Kind indicates the kind of a symbol: function, variable, constant, type, and so on.
type Kind int8
A Version represents a version of Go of the form "go1.%d".
type Version int8
type 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) bool
SplitField 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() string
String returns a version string of the form "go1.23", without allocating.
func (v Version) String() string
func init()
Generated with Arrow