13 Star 86 Fork 18

sndnvaps/ebookdownloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
uuid.go 414 Bytes
一键复制 编辑 原始数据 按行查看 历史
package ebookdownloader
import (
uuid "github.com/satori/go.uuid"
)
// GenerateUUID 根据小说的作者名和小说名 生成uuid码,使用UUID_V5格式
func (this *BookInfo) GenerateUUID() {
u := uuid.NewV5(uuid.NamespaceOID, this.Name+"-"+this.Author)
uuidStr := u.String()
this.BookUUID = uuidStr
}
// UUID 返回小说对应的uuid信息
func (this BookInfo) UUID() string {
return this.BookUUID
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sndnvaps/ebookdownloader.git
git@gitee.com:sndnvaps/ebookdownloader.git
sndnvaps
ebookdownloader
ebookdownloader
master

搜索帮助