packer

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalInput added in v1.8.0

func UnmarshalInput(typ reflect.Type, input any) (any, error)

Types

type Builder

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

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Finish

func (b *Builder) Finish() error

func (*Builder) MakeStructPacker

func (b *Builder) MakeStructPacker(values []*ast.InputValueDefinition, typ reflect.Type) (*StructPacker, error)

type NullUnmarshaller

type NullUnmarshaller interface {
	decode.Unmarshaler
	Nullable()
}

NullUnmarshaller is an unmarshaller that can handle a nil input

type StructPacker

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

func (*StructPacker) Pack

func (p *StructPacker) Pack(value any) (reflect.Value, error)

type ValuePacker

type ValuePacker struct {
	ValueType reflect.Type
}

func (*ValuePacker) Pack

func (p *ValuePacker) Pack(value any) (reflect.Value, error)

Jump to

Keyboard shortcuts

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