- Install Go
- To create a Go application - run
go mod init {app-name}
- Create a file called
main.go
- Create the data types using
struct
- Create handler functions for each type of request - fetch all, fetch by key, create new
- Write
main
function with a router(in this case, we usegin
) - Create router endpoints based on HTTP methods and link them with the appropriate request handler functions
- Run
go mod tidy
to install all dependencies/packages - Run
go run .
to start the app server