marstr / envelopes

A collection of Go packages to express Budget calculations and state easily.
Apache License 2.0
6 stars 0 forks source link

Add a Clone function that is agnostic to the Loader/Writer it is using. #40

Closed marstr closed 3 years ago

marstr commented 3 years ago

The previous Clone function was dangled impetuously on the FileSystem type, basically on the assumption that it would be great to be passed just a Loader. That was pretty dumb though, because each type of Stasher shouldn't need to rewrite the overall Clone logic. Associating it instead with the Repository interfaces makes way more sense.