8000 GitHub - dasalgadoc/solid-example-go: Repository to explore SOLID principles on Go language
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Repository to explore SOLID principles on Go language

Notifications You must be signed in to change notification settings

dasalgadoc/solid-example-go

Repository files navigation

🚀 🐹 SOLID Example

Go

Repository to explore the SOLID principles in a simple Go Gin poject.

🧲 Environment Setup

🛠️ Needed tools

  1. Go 1.18 or higher

🏃🏻 Application execution

  1. Make sure to download all Needed tools
  2. Clone the repository
  git clone https://github.com/dasalgadoc/solid-example.git
  1. Build up go project
  go get .
  1. Run the API
  go run main.go

🧳 Project explanation

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.

Single responsibility principle

git checkout 1-srp
git checkout 2-srp

Open-Closed principle

git checkout 1-ocp
git checkout 2-ocp

Liskov substitution principle

git checkout lsp

Interface segregation principle

git checkout isp

Dependency Injection principle

git checkout dip

🍙 Other versions

Do you prefer "Java" over "Go"? see this repository

About

Repository to explore SOLID principles on Go language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0