Repository to explore the SOLID principles in a simple Go Gin poject.
- Go 1.18 or higher
- Make sure to download all Needed tools
- Clone the repository
git clone https://github.com/dasalgadoc/solid-example.git
- Build up go project
go get .
- Run the API
go run main.go
This project tries to explore the SOLID principle through a simple Book CRUD Rest API, the project does not apply any infrastructure.
You may go between the branches in this sample repository to emphasize the desired topic.
git checkout 1-srp
git checkout 2-srp
git checkout 1-ocp
git checkout 2-ocp
git checkout lsp
git checkout isp
git checkout dip
Do you prefer "Java" over "Go"? see this repository