hacktivist123 / goignore

A lightweight CLI tool for generating .gitignore file in your project. Built with Go and ❤️
MIT License
29 stars 6 forks source link

Refactored functions and added tests #22

Closed quamejnr closed 1 year ago

quamejnr commented 1 year ago

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