base

package
v0.0.0-...-d9af017 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt8

func BoolToInt8(b bool) int8

func Int32ToString

func Int32ToString(i int32) string

func Int64ToString

func Int64ToString(i int64) string

func JoinInt32List

func JoinInt32List(s []int32, sep string) string

func JoinInt64List

func JoinInt64List(s []int64, sep string) string

func JoinUint32List

func JoinUint32List(s []uint32, sep string) string

func JoinUint64List

func JoinUint64List(s []uint64, sep string) string

func NowFormatYMDHMS

func NowFormatYMDHMS() string

///////////////////////////////////////////////////////////

func StringToInt32

func StringToInt32(s string) (int32, error)

func StringToInt64

func StringToInt64(s string) (int64, error)

func StringToUint32

func StringToUint32(s string) (uint32, error)

func StringToUint64

func StringToUint64(s string) (uint64, error)

Types

type Duration

type Duration time.Duration

Duration be used toml unmarshal string time, like 1s, 500ms.

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(text []byte) error

type Time

type Time int64

Time be used to MySql timestamp converting.

func (*Time) Scan

func (t *Time) Scan(src interface{}) (err error)

func (Time) Time

func (t Time) Time() time.Time

func (Time) Value

func (t Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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