utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessFromUser = 0
	COLON          = ":"
)

Variables

This section is empty.

Functions

func GetPassword

func GetPassword(sk string) string

func GetUUID

func GetUUID() (uint64, error)

func GetUserName

func GetUserName(ak string, instanceId string) string

func HmacSha1

func HmacSha1(keyStr string, message string) string

func IsContainStrArr

func IsContainStrArr(strArr []string, str string) bool

IsContainStrArr @Description: 字符串是否包含数组字符串中的某一项 like 匹配 @param strArr @param str @return bool

func IsHasStrArr added in v1.0.6

func IsHasStrArr(strArr map[string][]int32, str string) bool

IsHasStrArr @Description: 字符串是否包含数组字符串中的某一项 完全匹配 == @param strArr @param str @return bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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