Closed quamejnr closed 1 year ago
This refactors some functions and introduce afero library to include dependency injection in functions.
This ensures writing tests are easier by passing in an instance of a filesystem
Creating instance so filesystem using the afero library https://github.com/spf13/afero and passing them as arguments into functions
What is this?
This refactors some functions and introduce afero library to include dependency injection in functions.
Why this?
This ensures writing tests are easier by passing in an instance of a filesystem
How are you doing this?
Creating instance so filesystem using the afero library https://github.com/spf13/afero and passing them as arguments into functions