-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(utils.go): parametrize
CurrentWeekEntries
The function will now accept a time.Time value as param. This should improve testability, and make allow us to extend functionality refactor(utils.go): rename `CurrentWeekEntries` to make the intention more clear as the function has been changed to be parametrized it would now be possible to use it fetch entries from any week given a date, so this renaming will try to make that more clear BREAKING CHANGE: as both the signature and name of the function changed, any code calling it should be updated
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters