Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.24 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.24 KB

spintax

Software License Build Status GoDoc

A Go package to parse spintax, a text format used for automated article generation.

Install

$ go get github.com/tamnd/spintax

Usage

func Count

func Count(spin string) int

Count returns the number of variant of the spin.

func Spin

func Spin(strs []string) string

Spin creates a spin from list of strings.

func Unspin

func Unspin(spin string) string

Unspin creates a string from given spin.

Contribute

  • Fork repository
  • Create a feature branch
  • Open a new pull request
  • Create an issue for bug report or feature request

Contact

License

The MIT License (MIT). Please see LICENSE for more information.

Copyright (c) 2015 Nguyen Duc Tam, [email protected]