Documentation ¶
Index ¶
- Variables
- func AesBase64Decode(data string, keystr string) (string, error)
- func AesBase64Encode(origstr string, keystr string) (string, error)
- func FileIsExists(filepath string) bool
- func InitRandSeed()
- func MD5(content string) string
- func Md5(content string) string
- func MkDir(path string)
- func NewGUID() string
- func NewGuid() string
- func NewRandMN(min int, max int) func() int
- func NewRandMN32(min int32, max int32) func() int32
- func NewRandMN64(min int64, max int64) func() int64
- func NewRandN(max int) func() int
- func NewRandN32(max int32) func() int32
- func NewRandN64(max int64) func() int64
- func ReadFileAll(path string) (string, error)
- func SHA1(data string) string
- func Sha1(data string) string
- type RandStrUtil
Constants ¶
This section is empty.
Variables ¶
View Source
var IsInitRandSeed bool
Functions ¶
func AesBase64Encode ¶
AES加密,CBC
func FileIsExists ¶
* * add by yjh 211124 * check fiel esists
func InitRandSeed ¶
func InitRandSeed()
func NewRandMN32 ¶
func NewRandMN64 ¶
func NewRandN32 ¶
func NewRandN64 ¶
func ReadFileAll ¶
* * add by yjh 211124 * read file content
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
Click to show internal directories.
Click to hide internal directories.