templates

package
v0.0.0-...-cefa481 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Template

func Template(w http.ResponseWriter, code int, message string, data interface{}) ([]byte, error)

Code: Status code (e.g. 404, 200, 500) Message: Message to display to the user Data: Data to display to the user (applicable only to success responses)

Types

This section is empty.

Jump to

Keyboard shortcuts

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