Package spinner
implements text spinner. Useful for generating semirandom text.
- Supported brackets: curly
{}
and square[]
- Supported text separators:
|
and~
- Unlimited nesting
text := "{Hello|Big} {world|people}!"
fmt.Println(spinner.Spin(text))
// Possible outputs:
// Hello world!
// Big world!
// Hello people!
// Big people!
https://github.com/gosimple/spinner/issues
go get -u github.com/gosimple/spinner
The source files are distributed under the
Mozilla Public License, version 2.0,
unless otherwise noted.
Please read the FAQ
if you have further questions regarding the license.