tuple

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tuple

type Tuple struct {
	// contains filtered or unexported fields
}

func NewTuple

func NewTuple(val ...any) *Tuple

NewTuple keeps the legacy pointer-returning constructor for compatibility.

func NewTupleOwned

func NewTupleOwned(val []any) Tuple

NewTupleOwned builds a tuple from values owned by the caller. The values slice must not be mutated after the call.

func NewTupleOwnedBound added in v1.18.0

func NewTupleOwnedBound(val []any, bindingID any) Tuple

NewTupleOwnedBound builds a tuple from caller-owned values with the binding ID already set, skipping the intermediate tuple that NewTupleOwned followed by WithBindingID would allocate.

func NewTupleSized

func NewTupleSized(size int) Tuple

func NewTupleValue

func NewTupleValue(val ...any) Tuple

NewTupleValue builds a tuple as a value wrapper, which is the preferred form for storing and passing Tuple because it already shares its internal data via pointer semantics.

func (*Tuple) Append

func (t *Tuple) Append(val any)

func (*Tuple) BindingID

func (t *Tuple) BindingID() any

func (*Tuple) Copy

func (t *Tuple) Copy() Tuple

func (*Tuple) HasBindingID

func (t *Tuple) HasBindingID(bindingID any) bool

func (*Tuple) Index

func (t *Tuple) Index(i int) (any, error)

func (*Tuple) IsNull

func (t *Tuple) IsNull() bool

func (*Tuple) Len

func (t *Tuple) Len() int

func (*Tuple) PopLast

func (t *Tuple) PopLast() (any, error)

func (*Tuple) RawIndex

func (t *Tuple) RawIndex(i int) (any, error)

func (*Tuple) Resize

func (t *Tuple) Resize(size int)

func (*Tuple) Set

func (t *Tuple) Set(i int, val any) error

func (*Tuple) WithBindingID

func (t *Tuple) WithBindingID(bindingID any) Tuple

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL