ginutils

package
v0.0.0-...-cfa74d8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha1

func Sha1(str string) (hash string)

Sha1 @Date 2023-02-11 20:08:10 @Param str string @Return hash string @Method @Description: 将一个字符串以sha1进行编码

func Sha256

func Sha256(str string) (hash256 string)

Sha256 @Date 2023-02-11 20:09:35 @Param str string @Return hash256 string @Method @Description: 将一个字符串以sha256加密

Types

type HttpHandleMethod

type HttpHandleMethod = func(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes

func JudgeMethod

func JudgeMethod(method string, group *gin.RouterGroup) HttpHandleMethod

JudgeMethod @Date 2023-01-16 19:03:41 @Param method string @Param group gin.RouterGroup @Return httpHandleMethod @Description: 根据http请求的类型来返回对应的方法

Jump to

Keyboard shortcuts

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