go-base-utils

module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0

README

go-base-utils

这是一个golang的基本工具utils

包含:

  • 1、类型转换工具单元,Float32ToString、Float64ToString、StrToFloat64、StrToInt、StrToBool、Random
  • 2、struct、json、map的转换;
  • 3、字符串截取基本单元,SubstrBetween,SubstrAfter,SubstrBefore;
  • 4、http请求封装单元;
  • 5、随机单元,包含随机密码(多种组合形式),如:RandomPassword(16, "mix"),范围随机:Random(60.0, 100.0);
  • 6、文件读写单元,写入文本文件;
  • 7、DES加密,如:DESEncrypt,DESDecrypt;
  • 8、AES加密,如:AESEncrypt,AESDecrypt;
  • 9、RSA加、解密,如: RSAEncrypt("明文","公钥字符串")、RSADecrypt("密文", "私钥字符串")
  • 10、日期单元,获取各种格式的当前日期,如:GetYYYYMMDDHHMMSS();

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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