cli icon indicating copy to clipboard operation
cli copied to clipboard

docs: addd code style guideline

Open ilgooz opened this issue 3 years ago • 0 comments

In progress

Create a new .md file with the subjects below:

  • Optional funcs -optionally with Getters to prevent access to fields to avoid manipulation. e.g.: cosmosmetrics pkg
  • Group types, vars, consts only when they are related, do not create a single block with all definitions inside
  • Avoid using a package name like utils. instead use spesific names, e.g.: cosmosutil, cosmosanaysis.
  • Avoid adding util funcs to the application specific packages. e.g.: services, cmd, integration. Put all the util like packages under pkg. This helps to reduce the code in app specific packages, easier to work with.

ilgooz avatar Jun 14 '22 07:06 ilgooz