lorem

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

README

Generate lorem ipsum for your project.

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

Usage

import "gopkg.in/drhodes/golorem.v1"

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Email

func Email() string

Email generate email type

func Host

func Host() string

Host generate hostname type

func Paragraph

func Paragraph(min, max int) string

Paragraph Generate a paragraph with a specified range of sentences.

func Sentence

func Sentence(min, max int) string

Sentence Generate a sentence with a specified range of words.

func Url

func Url() string

Url Generate a random URL

func Word

func Word(min, max int) string

Word Generate a word in a specified range of letters.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL