This project is an appendix for my blog article (about validation).
This application has a scenario.
Once upon a time, There was a war between the banana faction and the orange faction. One day, somebody said, “I’ve developed the voting application to prove which is better fruits!”
Now, which one will you vote for? Voting for any other fruit is a sin.
go run main.go
and go to http://127.0.0.1:1323
with your browser.
You can vote for other fruit this way.
$ curl 'http://127.0.0.1:1323/vote' -H 'Content-Type: application/x-www-form-urlencoded' --data-raw 'fruit=apple'