tool

package
v0.0.0-...-132f7fb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Subnetwork_192_168 = "192.168."
	Subnetwork_10      = "10."
	Subnetwork_lo      // 本地回环子网 127.0.0.1
)

Variables

This section is empty.

Functions

func GenSaltPassword

func GenSaltPassword(salt, password string) string

func GetIpv4_192_168

func GetIpv4_192_168() string

func InStringSlice

func InStringSlice(slice []string, str string) bool

func JwtDecode

func JwtDecode(tokenString, JwtSignKey string) (*jwt.StandardClaims, error)

func JwtEncode

func JwtEncode(claims jwt.StandardClaims, JwtSignKey string) (string, error)

func MD5

func MD5(s string) string

MD5 md5加密

func Obj2Json

func Obj2Json(s interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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