timekit
Convenience functions to make your life easier when using with Golang's time
package.
Installation
In your Golang project, please run:
go get github.com/bartmika/timekit
Usage
import (
"fmt"
"github.com/bartmika/timekit"
)
startOfYearDate := timekit.FirstDayOfThisYear(time.Now)
fmt.Println(startOfYearDate)
Documentation
All documentation can be found here.
License
Made with
The project is licensed under the Unlicense.
Resource used:
- Stubbing Time.Now() in golang was a tremendous help in getting me to understand how to unit test with the
time.Time
package.