Example #1
0
func (f *flasher) In(s session.SessionStore) bool {
	if in := s.Get("_flashes"); in != nil {
		if inf, ok := in.(Flashes); ok {
			f.flashes = inf
			return true
		}
	}
	return false
}
Example #2
0
func (f *flasher) Out(s session.SessionStore) bool {
	if err := s.Set("_flashes", f.flashes); err != nil {
		return true
	}
	return false
}