jutils

package module
v0.0.0-...-8fc234b Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsInitRandSeed bool

Functions

func AesBase64Decode

func AesBase64Decode(data string, keystr string) (string, error)

AES解密

func AesBase64Encode

func AesBase64Encode(origstr string, keystr string) (string, error)

AES加密,CBC

func FileIsExists

func FileIsExists(filepath string) bool

* * add by yjh 211124 * check fiel esists

func InitRandSeed

func InitRandSeed()

func MD5

func MD5(content string) string

func Md5

func Md5(content string) string

func MkDir

func MkDir(path string)

* * add by yjh 211124 * make dir

func NewGUID

func NewGUID() string

make guid and ToUpper add by yjh 211126

func NewGuid

func NewGuid() string

make guid add by yjh 211126

func NewRandMN

func NewRandMN(min int, max int) func() int

func NewRandMN32

func NewRandMN32(min int32, max int32) func() int32

func NewRandMN64

func NewRandMN64(min int64, max int64) func() int64

func NewRandN

func NewRandN(max int) func() int

func NewRandN32

func NewRandN32(max int32) func() int32

func NewRandN64

func NewRandN64(max int64) func() int64

func ReadFileAll

func ReadFileAll(path string) (string, error)

* * add by yjh 211124 * read file content

func SHA1

func SHA1(data string) string

func Sha1

func Sha1(data string) string

Types

type RandStrUtil

type RandStrUtil struct {
	// contains filtered or unexported fields
}

func BuildRandStr

func BuildRandStr(str string) *RandStrUtil

func (*RandStrUtil) Rand

func (r *RandStrUtil) Rand(count int) string

make rand str in strmap add by yjh 211110

Jump to

Keyboard shortcuts

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