changeloguru/internal/changelog/generate.go

13 lines
242 B
Go
Raw Normal View History

package changelog
import (
"fmt"
"time"
2022-07-04 06:10:02 +00:00
"github.com/make-go-great/date-go"
)
func generateVersionHeaderValue(version string, when time.Time) string {
2022-07-04 06:10:02 +00:00
return fmt.Sprintf("%s (%s)", version, date.FormatDateByDefault(when, time.Local))
}