utils

package
v0.0.0-...-c96426c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatus

func GetStatus(resp map[string]interface{}) bool

func HandleError

func HandleError(w http.ResponseWriter, err error)

func Message

func Message(status bool, message string) map[string]interface{}

func ParseTemplateDir

func ParseTemplateDir(dir string) (*template.Template, error)

func RandomText

func RandomText(n int) []byte

func Respond

func Respond(w http.ResponseWriter, data map[string]interface{})

func SendEmail

func SendEmail(to string, subject string, data interface{}, emailTemp string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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