bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.22k stars 1.22k forks source link

refactor: The main function and some writes what I think is a better practice #68

Open uptutu opened 2 years ago

uptutu commented 2 years ago

Thanks for this repo. I have learnt a lot from it.

I have also tried to modify some of the code to my current knowledge to try to make the whole repository more like a Go project as I know it.

I look forward to discussing some of the relevant changes with you under this PR.

ref: uber-go style guide

Ajilagi commented 2 years ago

to bring the project closer to the Go project

What&which "Go project" do you mean? I think there is no standard project layout that initially came from Go / Go authors.

uptutu commented 2 years ago

What&which "Go project" do you mean? I think there is no standard project layout that initially came from Go / Go authors.

This is a good question, it is true that there is no official standard, and what I have is simply a style that I think is better, I guess.

Like what this repo is showing, or trying to express, I'm just relying on some of the knowledge that I have and doing what I think is a better practice.

I am very sorry for my title. This is very careless.

bxcodec commented 1 year ago

What do you think about applying the GolangCI linter? Would it be help?