A Go package to parse spintax, a text format used for automated article generation.
$ go get github.com/tamnd/spintax
func Count(spin string) int
Count returns the number of variant of the spin.
func Spin(strs []string) string
Spin creates a spin from list of strings.
func Unspin(spin string) string
Unspin creates a string from given spin.
- Fork repository
- Create a feature branch
- Open a new pull request
- Create an issue for bug report or feature request
- Nguyen Duc Tam
- [email protected]
- http://twitter.com/tamnd87
The MIT License (MIT). Please see LICENSE for more information.
Copyright (c) 2015 Nguyen Duc Tam, [email protected]