Documentation ¶
Overview ¶
Package flash implements flash messages.
Index ¶
- type Flash
- func (f *Flash) Alert(msg string, vars ...interface{})
- func (f *Flash) Alerts() []string
- func (f *Flash) Clear()
- func (f *Flash) Clone(values map[interface{}]interface{})
- func (f *Flash) Error(msg string, vars ...interface{})
- func (f *Flash) Errors() []string
- func (f *Flash) Warning(msg string, vars ...interface{})
- func (f *Flash) Warnings() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flash ¶
type Flash struct {
// contains filtered or unexported fields
}
Flash is a collection of data that is discarded on read. It's designed to be compatible with sessions.Values.
func (*Flash) Clear ¶
func (f *Flash) Clear()
Clear removes all items from the flash. It's rare to call Clear since flashes are cleared automatically upon reading.
func (*Flash) Clone ¶ added in v0.19.0
func (f *Flash) Clone(values map[interface{}]interface{})
Clone makes a copy of this flash data into the new target.
Click to show internal directories.
Click to hide internal directories.