【文件属性】:
文件名称:whimsy:在 Go 中生成短语的异想天开的库
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-16 05:02:47
Go
奇思妙想
一个用于生成短语的简单 Go 库。
go get github.com/johncoder/whimsy
例子:
package main
import (
"fmt"
"github.com/johncoder/whimsy"
)
func main () {
fmt . Prinln ( "A phrase of 4 words:" )
fmt . Println ( whimsy . NewPhrase ( 4 ))
}
输出:
A phrase of 4 words:
gopher death punch shampoo
【文件预览】:
whimsy-master
----main_test.go(668B)
----main.go(28KB)
----.gitignore(0B)
----README.md(341B)