lorem

package module
v0.0.0-...-da82e5b Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 2 Imported by: 96

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Email

func Email() string

Email

func Host

func Host() string

Host

func Paragraph

func Paragraph(min, max int) string

func Sentence

func Sentence(min, max int) string

Generate a sentence with a specified range of words.

func Url

func Url() string

Generate a random URL

func Word

func Word(min, max int) string

Generate a word in a specfied 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