The site provides content as HTML, rather than JSON (which is much more parse-able). Hence first comes transforming byte into HTML into String. Then slicing, iterating, matching, printing.
go get ./...
go build -o tester main.go
./tester http://hiring.test.everon.io/
- Using proper CLI package like spf13/cobra
- Better HTML-to-StringSlice conversion (if exists)
- More helper methods (to avoid some code repetition)
- More intellectual handling of states (I mean we have to maintain a dictionary of states, since website is not standardized, and that's counter-effective...)
- Better error handling (always and everywhere :))