tools

package
v0.0.0-...-c605425 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a1, a2 int) int

func DateFormat

func DateFormat(date time.Time, layout string) string

格式化时间

func IsEven

func IsEven(number int) bool

判断数字是否是偶数

func IsOdd

func IsOdd(number int) bool

判断数字是否是奇数

func ListTag

func ListTag() (tagstr string)

func Minus

func Minus(a1, a2 int) int

func Substring

func Substring(source string, start, end int) string

截取字符串

Types

type Routes

type Routes struct {
	// contains filtered or unexported fields
}

func NewRoutes

func NewRoutes(engine *gin.Engine) *Routes

func (*Routes) InitRouter

func (r *Routes) InitRouter()

初始化路由

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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