utils

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LOREM_IPSUM = `` /* 3503-byte string literal not displayed */
View Source
const LOREM_IPSUM_WORDS = `` /* 1338-byte string literal not displayed */

Variables

View Source
var (
	LoremParagraphs = strings.Split(LOREM_IPSUM, "\n")
	LoremWords      = strings.Fields(LOREM_IPSUM)
	WORDS           = strings.Fields(LOREM_IPSUM_WORDS)
)

Functions

func Ellipsis

func Ellipsis(text string, length int) string

func Escape

func Escape(in string) string

func IRIEncode

func IRIEncode(in string) string

func Lipsum

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

func Lorem

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

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