utils

package
v0.0.0-...-cda82d8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientType

func GetClientType(ctx *gin.Context) int

GetClientType 获取客户端类型----pc还是移动端 return 1:pc/未知 0:mobile

func IsAjax

func IsAjax(ctx *gin.Context) bool

IsAjax 判端是否为ajax请求

func IsPage

func IsPage(ctx *gin.Context) bool

IsPage 判端是否为ajax请求

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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