stdlib

Imports

Imports #

"fmt"
"strings"

Constants & Variables

Const const #

const Const

Field const #

const Field

Func const #

const Func

Invalid const #

const Invalid Kind = iota

Method const #

const Method

PackageSymbols var #

var PackageSymbols = map[string][]Symbol{...}

Type const #

const Type

Var const #

const Var

versions var #

var versions [30]string

Type Aliases

Kind type #

A Kind indicates the kind of a symbol: function, variable, constant, type, and so on.

type Kind int8

Version type #

A Version represents a version of Go of the form "go1.%d".

type Version int8

Structs

Symbol struct #

type Symbol struct {
Name string
Kind Kind
Version Version
}

Functions

HasPackage function #

HasPackage reports whether the specified package path is part of the standard library's public API.

func HasPackage(path string) bool

SplitField method #

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 method #

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)

String method #

func (kind Kind) String() string

String method #

String returns a version string of the form "go1.23", without allocating.

func (v Version) String() string

init function #

func init()

Generated with Arrow