Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 812 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 812 Bytes

Babble

Babble is a small utility that generates random words for you. I found this useful because occasionally you need a random word for testing.

tower of babel

Usage

package your_app

import (
  "github.com/tjarratt/babble"
)

func main() { babbler := NewBabbler() println(babbler.Babble()) // excessive-yak-shaving (or some other phrase)

// optionally set your own separator babbler.Separator = " " println(babbler.Babble()) // "hello from nowhere" (or some other phrase)

// optionally set the number of words you want babbler.Count = 1 println(babbler.Babble()) // antibiomicrobrial (or some other word)

return })