tool

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreePort

func GetFreePort() (int, error)

GetFreePort get a free port.

func Md5Crypt

func Md5Crypt(str string, salt ...interface{}) (CryptStr string)

Md5Crypt uses MD5 encryption algorithm to add salt encryption.

Types

type AuthServiceImpl

type AuthServiceImpl struct {
	AppID     string
	AppSecret string
}

func (*AuthServiceImpl) Resolve

func (s *AuthServiceImpl) Resolve(code string) string

Resolve resolves authorization code to WeChat open id,return empty string if an Error occurs.

Jump to

Keyboard shortcuts

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