Affected by GO-2022-0270
and 1 other vulnerabilities
GO-2022-0270: Insufficient Granularity of Access Control in github.com/google/exposure-notifications-verification-server
GO-2022-0798: Privilege escalation in rbac in github.com/google/exposure-notifications-verification-server
package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Aug 27, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package flash implements flash messages.
Flash is a collection of data that is discarded on read. It's designed to be
compatible with sessions.Values.
func New(values map[interface{}]interface{}) *Flash
New creates a new flash handler.
Alert adds a new alert to the upcoming flash instance.
Alerts returns the list of alerts in flash, if any.
Clear removes all items from the flash. It's rare to call Clear since flashes
are cleared automatically upon reading.
Error adds a new error to the upcoming flash instance.
Errors returns the list of errors in flash, if any.
func (f *Flash) Warning(msg string, vars ...interface{})
Warning adds a new alert to the upcoming flash instance.
Warnings returns the list of warnings in flash, if any.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.