decoder

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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