A simple RESTful API for managing a collection of books, built with Go. This project demonstrates basic CRUD operations using an in-memory store and follows Go best practices and project structure.
- Clone the repository:
git clone https://github.com/rukywe/go-books-api.git
cd go-books-api
- Initialize the Go module:
go mod tidy
- Initialize the Go module:
This project uses gorilla/mux for routing and google/uuid for generating unique IDs. You can install them by running:
go get github.com/gorilla/mux
go get github.com/google/uuid
To start the server, run:
go run main.go
The server will start on http://localhost:8080.