Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 743 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 743 Bytes

GitHub go.mod Go version

Books-List Go API

Go REST API;

  • Lessons Learned:

Create a model from Golang's struct type and a slice to add records to.

Create a router and register to it api endpoints and handler functions.

Build handler functions to do CRUD operations.

Create a Postgres database instance and a table to save records.

Establish a connection to the database and query the table for records as well as insert, update and delete individual records.

Build the handler functions to make queries to the database and perform CRUD operations on persistent data.

Make use of packages such as gorilla/mux, strconv, reflect and etc.