utils

package
v0.0.0-...-b160839 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ellipsis

func Ellipsis(text string, length int) string

Ellipsis truncates a string to a given length and appends an ellipsis sign (…).

func IRIEncode

func IRIEncode(in string) string

IRIEncode converts an Internationalized Resource Identifier (IRI) to a string that is suitable for inclusion in a URL.

func Lipsum

func Lipsum(n int, html bool, min, max int) string

Lipsum generates `n` paragraphs of text from lorem ipsum words. Each paragraph will contain between `min` and `max` random words.

func LoremIpsum

func LoremIpsum(count int, method string) (string, error)

LoremIpsum returns a lorem ipsum text.

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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