From bb307647c43777dd3799cd5cf256bdf433f2a6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20H=C3=B6hn?= Date: Sat, 26 Dec 2020 12:46:13 +0000 Subject: [PATCH] Abbreviate quarters in organized file output --- organizemyfiles/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/organizemyfiles/main.go b/organizemyfiles/main.go index 0fd3675..9bd4561 100644 --- a/organizemyfiles/main.go +++ b/organizemyfiles/main.go @@ -56,13 +56,13 @@ func (f *File) GetQuarter() string { switch quarterIndex := f.CreatedAt.Month() / 3; quarterIndex { case 0: - return "jan_to_march" + return "00_jan_to_mar" case 1: - return "april_to_june" + return "01_apr_to_jun" case 2: - return "july_to_september" + return "02_jul_to_sep" case 3: - return "october_to_december" + return "03_oct_to_dec" default: panic(fmt.Errorf("invalid quarter index: %d", quarterIndex)) }