No Description

kpmy 5f35d07560 fix of random number source, now can use lorem in goroutines 10 years ago
LICENSE 22181c23dd fix-license 13 years ago
README.md 80fd2cb5e7 fix-readme 13 years ago
lorem.go 5f35d07560 fix of random number source, now can use lorem in goroutines 10 years ago
lorem_test.go 6e38d8d5e4 fixed corner case, divide by zero when min == max 13 years ago
wordlist.go 84cdb39ecd go-fmt 13 years ago

README.md

Generate lorem ipsum for your project.

=============

Usage

import "lorem"

Ranged generators

These will generate a string with a variable number of elements specified by a range you provide

// generate a word with at least min letters and at most max letters.
Word(min, max int) string  

// generate a sentence with at least min words and at most max words.
Sentence(min, max int) string

// generate a paragraph with at least min sentences and at most max sentences.
Paragraph(min, max int) string

Convenience functions

Generate some commonly occuring tidbits

Host() string
Email() string
Url() string