converter

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 12 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 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