package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Functions

Append appends the values x to a slice s and returns the resulting slice.
AppendSlice appends a slice t to a slice s and returns the resulting slice.
ArrayOf returns the array type with the given length and element type.
ChanOf returns the channel type with the given direction and element type.
Copy copies the contents of src into dst until either dst has been filled or src has been exhausted.
DeepEqual reports whether x and y are “deeply equal,” defined as follows.
FuncOf returns the function type with the given argument and result types.
Indirect returns the value that v points to.
MakeChan creates a new channel with the specified type and buffer size.
MakeFunc returns a new function of the given [Type] that wraps the function fn.
MakeMap creates a new map with the specified type.
MakeMapWithSize creates a new map with the specified type and initial space for approximately n elements.
MakeSlice creates a new zero-initialized slice value for the specified slice type, length, and capacity.
MapOf returns the map type with the given key and element types.
New returns a Value representing a pointer to a new zero value for the specified type.
NewAt returns a Value representing a pointer to a value of the specified type, using p as that pointer.
PointerTo returns the pointer type with element t.
PtrTo returns the pointer type with element t.
Select executes a select operation described by the list of cases.
SliceAt returns a [Value] representing a slice whose underlying data starts at p, with length and capacity equal to n.
SliceOf returns the slice type with element type t.
StructOf returns the struct type containing fields.
Swapper returns a function that swaps the elements in the provided slice.
TypeFor returns the [Type] that represents the type argument T.
TypeOf returns the reflection [Type] that represents the dynamic type of i.
ValueOf returns a new Value initialized to the concrete value stored in the interface i.
VisibleFields returns all the visible fields in t, which must be a struct type.
Zero returns a Value representing the zero value for the specified type.

# Constants

No description provided by the author
No description provided by the author
chan.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Ptr is the old name for the [Pointer] kind.
<-chan.
default.
case <-Chan:.
case Chan <- Send.
chan<-.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

A MapIter is an iterator for ranging over a map.
Method represents a single method.
A SelectCase describes a single case in a select operation.
SliceHeader is the runtime representation of a slice.
StringHeader is the runtime representation of a string.
A StructField describes a single field in a struct.
Value is the reflection interface to a Go value.
A ValueError occurs when a Value method is invoked on a [Value] that does not support it.

# Interfaces

Type is the representation of a Go type.

# Type aliases

ChanDir represents a channel type's direction.
A Kind represents the specific kind of type that a [Type] represents.
A SelectDir describes the communication direction of a select case.
A StructTag is the tag string in a struct field.