flash

package
v0.0.0-...-7f85a1d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(w http.ResponseWriter, r *http.Request) []interface{}

Get flash messages from the cookie storage.

func Set

func Set(w http.ResponseWriter, r *http.Request, message Message)

Set adds a new message into the cookie storage.

Types

type Message

type Message struct {
	Title   string
	Message string
	Style   string
}

Message is a struct containing each flashed message

Jump to

Keyboard shortcuts

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