Open pherzheyu opened 2 years ago
编码规范考虑划分如下大章节:
+1
I think the code specification should be added into https://github.com/apache/dubbo-go/blob/master/CONTRIBUTING.md, and setup the linter on the github action to check if the code meet the specification.
I am writing the first edition of the code specification,and try to add it to this issue before this weekend.
What would you like to be added:
Good Code Style.
Why is this needed:
How: Although golang does not have a recognized code specification, we can refer to those: https://go.dev/ref/spec https://github.com/golang/go/wiki/CodeReviewComments https://github.com/uber-go/guide/blob/master/style.md
e.g.
into
into