templates

package
v0.13.4-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandAlpha

func RandAlpha(n int) string

randAlpha generates a string consisting of characters in the range a-z and A-Z.

func RandAlphaNum

func RandAlphaNum(n int) string

randAlphaNum generates a string consisting of characters in the range 0-9, a-z, and A-Z.

func RandInt

func RandInt(min, max int) int

func RandNumeric

func RandNumeric(n int) string

randNumeric generates a string consisting of characters in the range 0-9.

func RandString

func RandString(letters string, n int) string

randString is the internal function that generates a random string. It takes the length of the string and a string of allowed characters as parameters.

func Render

func Render(templateString string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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