1 Star 0 Fork 0

tomatomeatman / GolangRepository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
UUIDUtil.go 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
tomatomeatman 提交于 2022-09-16 17:02 . no commit message
package data
import (
"strings"
uuid "github.com/satori/go.uuid"
)
type UUIDUtil struct{}
func (ul UUIDUtil) Get() string {
result := strings.Replace(uuid.NewV4().String(), "-", "", -1)
return strings.ToUpper(result)
}
func (ul UUIDUtil) GetLowerCase() string {
result := strings.Replace(uuid.NewV4().String(), "-", "", -1)
return result
}
Go
1
https://gitee.com/tomatomeatman/golang-repository.git
git@gitee.com:tomatomeatman/golang-repository.git
tomatomeatman
golang-repository
GolangRepository
bcb142e03580

搜索帮助