cli
cli copied to clipboard
docs: addd code style guideline
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.