tools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatetimeStrFromUnix

func GetDatetimeStrFromUnix(unix int64) string

func GetMD5

func GetMD5(str string) string

func GetPoint1

func GetPoint1(f float64) float64

golang sometimes get float64 from mysql will be 1.49999999999999,old is 1.5

func GetSHA1

func GetSHA1(str string) string

获取string的sha1(32位)

func GetUnixFromDatetimeLocal

func GetUnixFromDatetimeLocal(str string) int64

func GetXXXX_XX_XX

func GetXXXX_XX_XX() string

func MustFloat

func MustFloat(str string) float64

func MustInt

func MustInt(str string) int

func MustInt64

func MustInt64(str string)

func Pagination

func Pagination(obj interface{}, size, page int, condition ...interface{})

分页插件

func SetField

func SetField(old interface{}, target *map[string]interface{}, fields ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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