Package spinner
implements simple text spinner.
- Supported brackets: curly ({}) and square ([])
- Supported text separators: | and ~
- Unlimited nesting
text := "{Hello|Big} {world|people}!"
fmt.Println(spinner.Spin(text))
// Will print: Hello world! or Big world! or Hello people! or 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.