templates

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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