convert

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: GPL-3.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorArrayToStringArray

func ErrorArrayToStringArray(errorArray *[]error) *[]string

ErrorArrayToStringArray maps an array of errors to an array of strings

func ToBool added in v0.1.2

func ToBool(value string) (bool, error)

ToBool converts a string to a bool

func ToFloat32 added in v0.1.2

func ToFloat32(value string) (float32, error)

ToFloat32 converts a string to a float32

func ToFloat64 added in v0.1.2

func ToFloat64(value string) (float64, error)

ToFloat64 converts a string to a float64

func ToInt added in v0.1.2

func ToInt(value string) (int, error)

ToInt converts a string to an int

func ToInt16 added in v0.1.2

func ToInt16(value string) (int16, error)

ToInt16 converts a string to an int16

func ToInt32 added in v0.1.2

func ToInt32(value string) (int32, error)

ToInt32 converts a string to an int32

func ToInt64 added in v0.1.2

func ToInt64(value string) (int64, error)

ToInt64 converts a string to an int64

func ToInt8 added in v0.1.2

func ToInt8(value string) (int8, error)

ToInt8 converts a string to an int8

func ToUint added in v0.1.2

func ToUint(value string) (uint, error)

ToUint converts a string to an uint

func ToUint16 added in v0.1.2

func ToUint16(value string) (uint16, error)

ToUint16 converts a string to an uint16

func ToUint32 added in v0.1.2

func ToUint32(value string) (uint32, error)

ToUint32 converts a string to an uint32

func ToUint64 added in v0.1.2

func ToUint64(value string) (uint64, error)

ToUint64 converts a string to an uint64

func ToUint8 added in v0.1.2

func ToUint8(value string) (uint8, error)

ToUint8 converts a string to an uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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