converter

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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, trimSpace bool) Repeated

func (Repeated) AsBools added in v0.9.14

func (r Repeated) AsBools() ([]bool, error)

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