converter

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(raw string, toType reflect.Type, skipValidation bool, format string, options ...interface{}) (value interface{}, wasNil bool, err error)

Types

type Repeated

type Repeated []string

func NewRepeated

func NewRepeated(text string, isNumeric bool) Repeated

func (Repeated) AsFloats32

func (r Repeated) AsFloats32() ([]float32, error)

func (Repeated) AsFloats64

func (r Repeated) AsFloats64() ([]float64, error)

func (Repeated) AsInt64s

func (r Repeated) AsInt64s() ([]int64, error)

func (Repeated) AsInts

func (r Repeated) AsInts() ([]int, error)

func (Repeated) AsUInt64s

func (r Repeated) AsUInt64s() ([]uint64, error)

func (Repeated) AsUInts

func (r Repeated) AsUInts() ([]uint, error)

func (Repeated) Convert

func (r Repeated) Convert(toType reflect.Type) (interface{}, error)

Jump to

Keyboard shortcuts

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