util

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(input string) string

func GetCookieFromGin

func GetCookieFromGin(ctx *gin.Context, key string) (value string)

func IsCIDR

func IsCIDR(cidr string) bool

func IsIP

func IsIP(ipv4 string) bool

func NewMd5

func NewMd5(str ...string) string

func User

func User(c *gin.Context) (user *mmysql.User)

Types

type CfTrace

type CfTrace struct {
	Ip   string `json:"ip"`
	Loc  string `json:"loc"`
	Colo string `json:"colo"`
}

func GetCftrace

func GetCftrace() (*CfTrace, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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