decoder

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(types []reflect.Type, schema *bigquery.TableSchema) (func(values []interface{}) *Decoder, error)

New creates a new decoder

Types

type Decoder

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

Decoder represents value decoder

func (*Decoder) NKeys

func (d *Decoder) NKeys() int

NKeys returns expcted max keys for the decoder

func (*Decoder) Set

func (d *Decoder) Set(values []interface{})

Set sets value

func (*Decoder) SetValues

func (d *Decoder) SetValues(values []interface{})

SetValues sets values pointer

func (*Decoder) UnmarshalJSONArray

func (d *Decoder) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray unmarshal JSON array

func (*Decoder) UnmarshalJSONObject

func (d *Decoder) UnmarshalJSONObject(dec *gojay.Decoder, _ string) error

UnmarshalJSONObject unmarshal json object

type Unmarshaler

type Unmarshaler interface {
	gojay.UnmarshalerJSONObject
	// contains filtered or unexported methods
}

Unmarshaler represnets unmarshaler

Jump to

Keyboard shortcuts

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