tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

BoolToInt bool to int

func IntToBool

func IntToBool(n int) bool

IntToBool int to bool

func IsToday

func IsToday(t time.Time) bool

IsToday 判断时间是否是今天

func Struct2Map

func Struct2Map(obj interface{}) map[string]interface{}

Struct2Map struct to map

func ZeroTime

func ZeroTime(t time.Time) time.Time

ZeroTime 返回当天的零点时间,时区 UTC+8

Types

This section is empty.

Jump to

Keyboard shortcuts

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