Getting ready...

As we have already created an HTML form in one of our previous recipes, we will just update it to implement login and logout mechanisms using the gorilla/securecookie package.

See the Implementing login and logout in web application recipe in Chapter 2, Working with Templates, Static Files, and HTML Forms.

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.