helper

package
v0.0.0-...-c7833f4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString generates a random string of a specified length.

func JSONResponse

func JSONResponse(data interface{}, w http.ResponseWriter) (err error)

JSONResponse sends a client a JSON response.

func Seed

func Seed()

Seed seeds the random number generator.

func ThrowErr

func ThrowErr(w http.ResponseWriter, r *http.Request, err error)

ThrowErr is the function used to throw an error when on an HTML request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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