Go session variables? -


i'm new go language (golang) , i'm writing web-based application. i'd use session variables, kind in php (variables available 1 page next , unique user session). there in go? if not, how go implementing them myself? or alternatives methods there?

you want take @ gorilla. has session support documented here.

other or possibly 1 of other web toolkits go have roll own.

possible solutions might be:

  • goroutine per user session store session variables in memory.
  • store variables in session cookie.
  • use database store user session data.

i'll leave implementation details of each of reader.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -