diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-06-13 22:00:55 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-13 22:00:55 +0200 |
commit | e4436faa1ad40ed285d34e2f00e8dbf41cfc1687 (patch) | |
tree | 4ff812fb6d59be535163e8be04733682315d243b /src | |
parent | 493ff20931f5133025540841a248a0763bff78df (diff) |
Rename ‘Printer.Date’ to ‘Printer.D’
Diffstat (limited to 'src')
-rw-r--r-- | src/i18n.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i18n.go b/src/i18n.go index 3dca028..089e3de 100644 --- a/src/i18n.go +++ b/src/i18n.go @@ -250,7 +250,7 @@ func (p Printer) N(n int) string { return p.inner.Sprint(n) } -func (p Printer) Date(d time.Time) string { +func (p Printer) D(d time.Time) string { return d.Format(p.Locale.dateFmt) } |