1 Star 0 Fork 0

tomatomeatman/GolangRepository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
UUIDUtil.go 391 Bytes
一键复制 编辑 原始数据 按行查看 历史
laowei 提交于 2024-07-15 14:55 +08:00 . bricks2准备
package data
import (
"strings"
uuid "github.com/satori/go.uuid"
)
type UUIDUtil struct{}
// 获取UUID大写
func (ul UUIDUtil) Get() string {
result := strings.Replace(uuid.NewV4().String(), "-", "", -1)
return strings.ToUpper(result)
}
// 获取UUID小写
func (ul UUIDUtil) GetLowerCase() string {
result := strings.Replace(uuid.NewV4().String(), "-", "", -1)
return result
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tomatomeatman/golang-repository.git
git@gitee.com:tomatomeatman/golang-repository.git
tomatomeatman
golang-repository
GolangRepository
fed9db1a323d

搜索帮助