conv

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 130

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolArrayToString

func BoolArrayToString(vs []bool) []string

func BoolToString

func BoolToString(v bool) string

func BytesArrayToString

func BytesArrayToString(vs [][]byte) []string

func BytesToString

func BytesToString(v []byte) string

func Date

func Date(t time.Time) time.Time

func DateTime

func DateTime(t time.Time) time.Time

func DurationToString

func DurationToString(v time.Duration) string

func Float32ArrayToString

func Float32ArrayToString(vs []float32) []string

func Float32ToString

func Float32ToString(v float32) string

func Float64ArrayToString

func Float64ArrayToString(vs []float64) []string

func Float64ToString

func Float64ToString(v float64) string

func IPToString

func IPToString(v net.IP) string

func Int32ArrayToString

func Int32ArrayToString(vs []int32) []string

func Int32ToString

func Int32ToString(v int32) string

func Int64ArrayToString

func Int64ArrayToString(vs []int64) []string

func Int64ToString

func Int64ToString(v int64) string

func IntToString

func IntToString(v int) string

func StringArrayToString

func StringArrayToString(vs []string) []string

func StringToString

func StringToString(v string) string

func Time

func Time(t time.Time) time.Time

func TimeArrayToString

func TimeArrayToString(vs []time.Time) []string

func TimeToString

func TimeToString(v time.Time) string

func ToBool

func ToBool(s string) (bool, error)

func ToBoolArray

func ToBoolArray(a []string) ([]bool, error)

func ToBytes

func ToBytes(s string) ([]byte, error)

func ToBytesArray

func ToBytesArray(a []string) ([][]byte, error)

func ToDuration

func ToDuration(s string) (time.Duration, error)

func ToFloat32

func ToFloat32(s string) (float32, error)

func ToFloat32Array

func ToFloat32Array(a []string) ([]float32, error)

func ToFloat64

func ToFloat64(s string) (float64, error)

func ToFloat64Array

func ToFloat64Array(a []string) ([]float64, error)

func ToIP

func ToIP(s string) (net.IP, error)

func ToInt

func ToInt(s string) (int, error)

func ToInt32

func ToInt32(s string) (int32, error)

func ToInt32Array

func ToInt32Array(a []string) ([]int32, error)

func ToInt64

func ToInt64(s string) (int64, error)

func ToInt64Array

func ToInt64Array(a []string) ([]int64, error)

func ToString

func ToString(s string) (string, error)

func ToStringArray

func ToStringArray(a []string) ([]string, error)

func ToTime

func ToTime(s string) (time.Time, error)

func ToTimeArray

func ToTimeArray(a []string) ([]time.Time, error)

func ToURL

func ToURL(s string) (url.URL, error)

func ToUUID

func ToUUID(s string) (uuid.UUID, error)

func ToUUIDArray

func ToUUIDArray(a []string) ([]uuid.UUID, error)

func URLToString

func URLToString(v url.URL) string

func UUIDArrayToString

func UUIDArrayToString(vs []uuid.UUID) []string

func UUIDToString

func UUIDToString(v uuid.UUID) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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