concept flash message in category go

This is an excerpt from Manning's book Go Web Programming.
Sometimes it’s necessary to show users a short informational message telling them whether or not they’ve successfully completed an action. If the user submits a post to a forum and his posting fails, you’ll want to show him a message that tells him that the post didn’t go through. Following the Principle of Least Surprise from the previous chapter, you want to show the message on the same page. But this page doesn’t normally show any messages, so you want the message to show on certain conditions and it must be transient (which means it doesn’t show again when the page is refreshed). These transient messages are commonly known as flash messages.
There are many ways to implement flash messages, but one of the most common is to store them in session cookies that are removed when the page is refreshed. This listing shows how you can do this in Go.