We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e90a25 commit af7f712Copy full SHA for af7f712
modules/middlewares/flash.go
@@ -27,6 +27,9 @@ type Flash struct {
27
}
28
29
func (f *Flash) set(name, msg string, current ...bool) {
30
+ if f.Values == nil {
31
+ f.Values = make(map[string][]string)
32
+ }
33
isShow := false
34
if (len(current) == 0 && FlashNow) ||
35
(len(current) > 0 && current[0]) {
0 commit comments