string_convert

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

func StringToBytes

func StringToBytes(s string) (b []byte)

func ToAnyByBytes added in v1.0.5

func ToAnyByBytes(v []byte, dst encoding.BinaryUnmarshaler) error

func ToAnyByText added in v1.0.5

func ToAnyByText(v string, dst encoding.TextUnmarshaler) error

func ToBool

func ToBool(v string) bool

func ToBytes added in v1.0.5

func ToBytes(dst []byte, i interface{}) []byte

func ToFloat32

func ToFloat32(v string) float32

func ToFloat64

func ToFloat64(v string) float64

func ToInt

func ToInt(v string) int

func ToInt16

func ToInt16(v string) int16

func ToInt32

func ToInt32(v string) int32

func ToInt64

func ToInt64(v string) int64

func ToInt8

func ToInt8(v string) int8

func ToString

func ToString(i interface{}) string

func ToUint

func ToUint(v string) uint

func ToUint16

func ToUint16(v string) uint16

func ToUint32

func ToUint32(v string) uint32

func ToUint64

func ToUint64(v string) uint64

func ToUint8

func ToUint8(v string) uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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