func FlashFilter

func FlashFilter(c *Controller, fc []Filter)

type Flash

type Flash struct {
    Data, Out map[string]string

Flash represents a cookie that gets overwritten on each request. It allows data to be stored across one page at a time. This is commonly used to implement success or error messages. e.g. the Post/Redirect/Get pattern: http://en.wikipedia.org/wiki/Post/Redirect/Get

func (Flash) Error

func (f Flash) Error(msg string, args ...interface{})

func (Flash) Success

func (f Flash) Success(msg string, args ...interface{})