convert

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ISO8601 is format for ISO8601 dates. Like RFC3339, but without timezone
	ISO8601 = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

func ToBool

func ToBool(value string) (bool, error)

ToBool tries to convert string into bool type

func ToDate

func ToDate(value string) (time.Time, error)

ToDate tries to convert string into time.Time type

func ToFloat

func ToFloat(value string) (float64, error)

ToFloat tries to convert string into float64 type

func ToInt

func ToInt(value string) (int, error)

ToInt tries to convert string into int type

func ToUint

func ToUint(value string) (uint, error)

ToUint tries to convert string into int type

Types

This section is empty.

Jump to

Keyboard shortcuts

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