utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendNumBytes

func AppendNumBytes(dst []byte, num interface{}) ([]byte, error)

func BytesToNum

func BytesToNum(b []byte, num interface{}) error

func BytesToStr

func BytesToStr(buff []byte) string

func CopyFile

func CopyFile(src, des string) bool

func Floa32ToStr

func Floa32ToStr(f float32) string

func Floa64ToStr

func Floa64ToStr(f float64) string

func Int32ToStr

func Int32ToStr(n int32) string

func Int64ToStr

func Int64ToStr(n int64) string

func IntToStr

func IntToStr(n int) string

func NumToBytes

func NumToBytes(num interface{}) ([]byte, error)

func StrToFloat32

func StrToFloat32(s string) (float32, error)

float convert

func StrToFloat64

func StrToFloat64(s string) (float64, error)

func StrToInt

func StrToInt(s string) (int, error)

int convert

func StrToInt32

func StrToInt32(s string) (int32, error)

int32 convert

func StrToInt64

func StrToInt64(s string) (int64, error)

int64 convert

func StrToUint

func StrToUint(s string) (uint, error)

func StrToUint32

func StrToUint32(s string) (uint32, error)

func StrToUint64

func StrToUint64(s string) (uint64, error)

func Uint32ToStr

func Uint32ToStr(n uint32) string

func Uint64ToStr

func Uint64ToStr(n uint64) string

func UintToStr

func UintToStr(n uint) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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