Documentation
¶
Index ¶
- func CalcTokens(text string) int
- func CheckCodeFormat(content string) bool
- func FormatTimeStamp(timestamp int64) string
- func GenOrderNo() string
- func GenPaySignature(data, nonceStr, certKeyFilePath string) string
- func GenRandomString(length int) string
- func GenUUID() string
- func GetCode(content string, length int) string
- func GetTrialCode(content string) string
- func ReadCertKeyFile(path string) (*rsa.PrivateKey, error)
- func ReplaceRepeatingSubstrings(text string, repeat int) string
- func StringToSlice(s string) []rune
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcTokens ¶
func FormatTimeStamp ¶
func GenOrderNo ¶
func GenOrderNo() string
func GenPaySignature ¶
微信支付jsapi签名生成
func GenRandomString ¶
func GetTrialCode ¶
func ReadCertKeyFile ¶
func ReadCertKeyFile(path string) (*rsa.PrivateKey, error)
func ReplaceRepeatingSubstrings ¶
Remove continuous repeating substrings @param text string @param repeat int
func StringToSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.