From baa835dfbd0bd20039c48e192bf4bd4d1f1eef4b Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 1 Feb 2022 22:01:30 +0100 Subject: Control for setting the subdir --- types.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'types.go') diff --git a/types.go b/types.go index d16ef10..eb459c9 100644 --- a/types.go +++ b/types.go @@ -10,11 +10,16 @@ const ( ) var GenderStrings = []string{"Herren", "Damen"} +var GenderStringsShort = []string{"H", "D"} func (g Gender) String() string { return GenderStrings[g] } +func (g Gender) ShortString() string { + return GenderStringsShort[g] +} + func (g Gender) Engarde() (string, error) { switch g { case GenderM: @@ -49,11 +54,11 @@ func (g *Gender) UnmarshalCSV(content []byte) error { type AgeGroup int32 const ( - AgeVeteran AgeGroup = iota - AgeSenior + AgeSenior AgeGroup = iota + AgeVeteran ) -var AgeGroupStrings = []string{"Veteranen", "Senioren"} +var AgeGroupStrings = []string{"Senioren", "Veteranen"} func (a AgeGroup) String() string { return AgeGroupStrings[a] -- cgit v1.2.3-70-g09d2