Sunday, October 2, 2022
HomeGolangFlash Classes in Go Templates - Code Assessment

Flash Classes in Go Templates – Code Assessment


Hello i’m constructing an internet utility and that i am having points displaying flashes utilizing Gorilla Classes. I’m engaged on the Signup and Login handlers , i had set the session messages utilizing helpers.SetFlash(), and that i displayed the session message with the helpers.GetFlash() utilizing a make(map[string]interface{}) which i used as an object for the template knowledge. messages.html is accountable for displaying the flash periods. When i ran my code the session works superb however not displaying any message . I dont know if the difficulty is from the templates or from the codes within the handlers …
Right here is the hyperlink to my github code.
GitHub – Philip-21/ContentWebApp: A Content material Internet utility for creating and Posting Contents constructed with Golang
I actually respect a assist with this Thanks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments