web
web copied to clipboard
The easiest way to create web applications with Go
I find it useful to be able to specify the cookie path when setting the cookie. What if we have an extra argument to the SetCookie/SetSecureCookie functions...
With web.Run(":80") and running authbind --deep ./web as a system user on Linux leads to > ListenAndServe:listen tcp :80: permission denied > Running as root is successful but has potential...
For instance, the route "/([0-9]+), should be able to be passed to the following handler: func handler ( n int ) string { ... }
Is this a bug? If not, what is the new way to access cookies?
To deal with the naming constraints of a struct, the `json` module allows one too specify tags to guide unmarshaling/marshaling: ``` type MyParams struct { FooBar string "foo_bar" } ```...
web.go line 78 The cookie age parameter is ignored. The cookie expiration is hard-coded for 30 minutes. I think the SetCookie function should be replaced with this: //Sets a cookie...
Reported by Alexey Zilber: Running a web.go app with spawn-fcgi doesn't work: > sudo -u lighttpd spawn-fcgi -f /path/to/app -a localhost -p 8803 > > spawn-fcgi.c.230: child exited with: 0...
Creat calculator