convertor

package
v0.0.0-...-cb1f643 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt64

func BytesToInt64(buf []byte) int64

func ConvertInt

func ConvertInt(n interface{}) int

func ConvertInt32

func ConvertInt32(n interface{}) int32

func ConvertInt64

func ConvertInt64(n interface{}) int64

func ConvertInt64List

func ConvertInt64List(s string, sep string) ([]int64, error)

func ConvertUint64

func ConvertUint64(n interface{}) uint64

func Int64ToBytes

func Int64ToBytes(i int64) []byte

func StrToTime

func StrToTime(v string) (time.Time, error)

func StrToTimestamp

func StrToTimestamp(v string) (int64, error)

func TimeToStr

func TimeToStr(t time.Time) string

func TimeToTimestamp

func TimeToTimestamp(t time.Time) int64

func TimestampToStr

func TimestampToStr(timestamp int64) string

func TimestampToTime

func TimestampToTime(timestamp int64) time.Time

func ValueToTime

func ValueToTime(year, month, day, hour, min, sec, nsec int) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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