Skip to content
/ spintax Public

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

License

Notifications You must be signed in to change notification settings

tamnd/spintax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, tamnd87@gmail.com

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages