datree icon indicating copy to clipboard operation
datree copied to clipboard

Refactor LocalConfig package

Open noaabarki opened this issue 3 years ago • 0 comments

Describe the solution you'd like Cleanup:

  1. Delete LocalConfig(empty struct). Instead, export GetLocalConfiguration function. Add comments to this function.
  2. Remove getConfigName and getConfigType. Use const instead.
  3. Add setter and getter for token key in the local configuration.
  4. Cover these updates with testing. Use pkg/extractor or pkg/httpClinet as reference.

Requirements Golang basic level.

noaabarki avatar Feb 24 '22 14:02 noaabarki