Mark-Jung / go-contacts

0 stars 0 forks source link

attach the model to the view. #1

Open Mark-Jung opened 5 years ago

Mark-Jung commented 5 years ago

Currently, the view returns dummy data and struct. Attach the psql infused model into the view.

  1. Handle naively.
  2. Add error messages(https://github.com/pkg/errors) to a file for logging. This will lead to adding another package to utils for logging errors. It will be a different logger than the one that logs the request and ip(rate limit).
  3. Tests!
Mark-Jung commented 5 years ago

Useful article regarding error handling in Go. https://medium.com/@hussachai/error-handling-in-go-a-quick-opinionated-guide-9199dd7c7f76 Will need to read more.