Is it possible to send both session and some custom app specific json data to the client form net/http package of Go.
I am using gorilla/sessions for session. And after storing values, needs to call func (s *CookieStore) Save(r *http.Request, w http.ResponseWriter, session *Session) error.
But on the other hand this handler function also needs to send some JSON data to the client by fmt.Fprintf(http.ResponseWriter, string(js)).
How can this be achieved?
Write
s. – twotwotwo