Hello i’m constructing an internet software and that i am having points displaying flashes utilizing Gorilla Periods. 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 information. messages.html is chargeable for displaying the flash classes. When i ran my code the session works high-quality however not displaying any message . I dont know if the problem 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 Net software for creating and Posting Contents constructed with Golang
I actually recognize a assist with this Thanks
Hello, Philip, are you able to attempt to shrink this to a smaller reproducible situation? I attempted cloning the repo and operating it domestically, but it surely seems like I’ve to arrange Postgres to run it? I’m engaged on doing that, however is there a smaller check case that I might attempt with out organising the entire atmosphere?