summaryrefslogtreecommitdiff
path: root/types.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-02-01 22:01:30 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-02-01 22:01:30 +0100
commitbaa835dfbd0bd20039c48e192bf4bd4d1f1eef4b (patch)
treef60294099ee15b14763513ef1a87b0a6af270ec2 /types.go
parentd3a709c945002c5fbb1123ab8dbe25cb509e01e2 (diff)
downloadengarde-importer-baa835dfbd0bd20039c48e192bf4bd4d1f1eef4b.tar.gz
engarde-importer-baa835dfbd0bd20039c48e192bf4bd4d1f1eef4b.tar.bz2
engarde-importer-baa835dfbd0bd20039c48e192bf4bd4d1f1eef4b.zip
Control for setting the subdir
Diffstat (limited to 'types.go')
-rw-r--r--types.go11
1 files changed, 8 insertions, 3 deletions
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]