We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
仅限中文
需要重构函数 RandCode
无法实现随机生成 数字+大写字母 / 数字 + 小写字母 / 大写字母 + 小写字母 的这种组合
TYPE_DIGIT TYPE = 1 //数字 TYPE_LETTER TYPE = 1 << 1 //小写字母 TYPE_CAPITAL TYPE = 1 << 2 //大写字母 TYPE_MIXED TYPE = (TYPE_DIGIT | TYPE_LETTER | TYPE_CAPITAL)
然后可以通过取按位与的值来确认最终的source字符串
source := "" if (typ & TYPE_DIGIT) == TYPE_DIGIT { source += DigitCharset } ...
任何你觉得有利于解决问题的补充说明
上传 go env 的结果
go env
The text was updated successfully, but these errors were encountered:
可以支持这个
Sorry, something went wrong.
我最近抽空写一下这个
PR: #241
Successfully merging a pull request may close this issue.
仅限中文
需要重构函数 RandCode
当前实现缺陷
无法实现随机生成 数字+大写字母 / 数字 + 小写字母 / 大写字母 + 小写字母 的这种组合
重构方案
然后可以通过取按位与的值来确认最终的source字符串
其它
你使用的是 ekit 哪个版本?
你设置的的 Go 环境?
The text was updated successfully, but these errors were encountered: