How do you pass a value to a redirect?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • sessions

    Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.

    If you want to persist some form of context between requests you can store it in session data via a cookie that can be pulled/leveraged in the second handler, ex: https://github.com/gorilla/sessions. If you try to implement it yourself consider security aspects like that a user could modify if unsigned, etc. You can also store data server side and just issue a token in a cookie corresponding to a server side session. Hope that helps.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts