Fetch the repository succeeded.
title: go语言版本的随机单词生成库
date: 2021-02-19 12:12:57
categories:
- Go
tags:
- go
- 编程
WordBot是一个go语言版本的随机单词生成库。
有了它可以随机生成单词字符串.可以定义位数1-19位. 可以设置大小写模式.基本满足日程生成随机字符
有此项目诸君不用重复造轮子。
go get github.com/ser163/WordBot/generate
package main
import (
"fmt"
"github.com/ser163/WordBot/generate"
)
func main() {
for i := 0; i < 5; i++ {
w, err := generate.GenRandomWorld(0, "none")
if err != nil {
fmt.Println(err)
break
}
fmt.Println(w.Chance, w.Word)
}
}
func GenRandomWorld(length int, model string) (WorldList, error)
Github: http://github.com/ser163/WordBot/
Gitee: http://gitee.com/ser163/WordBot/
此项目算法参考: https://namefull.github.io
namefull--一个js版本随机单词生成器
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。