Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jtruk
on June 20, 2016
|
parent
|
context
|
favorite
| on:
Golang and MySQL login tutorial
panic() in a web serving route (e.g. signupPage here) is bad practice - an error will bring down your web server. Panics should be reserved for errors that invalidate your system, e.g. missing view assets or db connection on system startup.
Much better to http.Redirect/5xx.
lllorddino
on June 20, 2016
[–]
Fixed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Much better to http.Redirect/5xx.