提交 5b3b6f7f 编写于 作者: A astaxie

add NewFlash func

上级 0c2af58b
......@@ -10,6 +10,12 @@ type FlashData struct {
Data map[string]string
}
func NewFlash() *FlashData{
return &FlashData{
Data:make(map[string]string)
}
}
func (fd *FlashData) Notice(msg string, args ...interface{}) {
if len(args) == 0 {
fd.Data["notice"] = msg
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册