utils

package
v0.0.0-...-a2c21a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmail

func CheckEmail(email string) bool

检查是否邮箱

func CheckMobile

func CheckMobile(mobile string) bool

func GetClientIp

func GetClientIp(ctx context.Context) string

func GetOfficeLimit

func GetOfficeLimit(page, pageSize *uint32) (int, int)

func RandomString

func RandomString(n int) string

Types

type Query

type Query interface {
	Offset(offset int)
	Limit(limit int)
}

Jump to

Keyboard shortcuts

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