common

package
v0.0.0-...-555e9fd Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdClientByGinContext

func GetEtcdClientByGinContext(c *gin.Context) (client model.EtcdSdk, err error)

GetEtcdClientByGinContext 获取一个etcd客户端 从gin请求上下文

func GetHttpToInt

func GetHttpToInt(c *gin.Context, name string) int

GetHttpToInt 获取请求参数,转为int

func GetRootDir

func GetRootDir() string

GetRootDir 获取执行路径

func Md5

func Md5(s string) string

Md5 计算字符串md5值

func Md5Password

func Md5Password(password string) string

Md5Password 密码生成

func PathExists

func PathExists(path string) (bool, error)

PathExists 判断文件或目录是否存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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