tools

package
v0.0.0-...-693abe4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(data []byte) string

func MapMatch

func MapMatch(pattern map[string]string, data map[string]string) int

func RSAPublickDecrypt

func RSAPublickDecrypt(pubKey *rsa.PublicKey, data []byte) []byte

func RSAPublickDecryptEasy

func RSAPublickDecryptEasy(key, data []byte) ([]byte, error)

func Random

func Random(n int) string

Random return a random string with given length

func SimpleMatch

func SimpleMatch(pattern, s string) bool

func SimpleMatchScore

func SimpleMatchScore(pattern, s string) int

字符串匹配, 返回匹配的分值 - 精准匹配: 2分 - 模糊匹配: 1分 - 不匹配: 0分

Types

This section is empty.

Jump to

Keyboard shortcuts

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