1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-03 13:21:22 +02:00
authboss/internal/flashutil/flashutil.go
Kris Runzer 2b043b78fa More work on cleaning up recover
- Add email layouts
2015-02-01 14:17:18 -08:00

12 lines
312 B
Go

package flashutil
import "gopkg.in/authboss.v0"
// Pull is a convenience func to retreive then delete a flash message. Any ok
// checks are ignored as they don't alter the intended use.
func Pull(storer authboss.ClientStorer, key string) string {
value, _ := storer.Get(key)
storer.Del(key)
return value
}