Can now parse

This commit is contained in:
cdricms
2024-04-24 21:03:51 +02:00
parent a1a4a3e8b6
commit 041c9378c7
3 changed files with 214 additions and 216 deletions

82
parsing/parsingEnums.go Normal file
View File

@@ -0,0 +1,82 @@
package parsing
type Gender rune
const (
Male Gender = 'M'
Female Gender = 'F'
)
type Quarter string
const (
QuarterOne Quarter = "Q1"
QuarterTwo Quarter = "Q2"
QuarterThree Quarter = "Q3"
QuarterFour Quarter = "Q4"
)
type Half string
const (
HalfOne Half = "H1"
HalfTwo Half = "H2"
)
type Month string
const (
January Month = "January"
February Month = "February"
March Month = "March"
April Month = "April"
May Month = "May"
June Month = "June"
July Month = "July"
August Month = "August"
September Month = "September"
October Month = "October"
November Month = "November"
December Month = "December"
)
type MonthShort string
const (
Jan MonthShort = "Jan"
Feb MonthShort = "Feb"
Mar MonthShort = "Mar"
Apr MonthShort = "Apr"
MayShort MonthShort = "May"
Jun MonthShort = "Jun"
Jul MonthShort = "Jul"
Aug MonthShort = "Aug"
Sep MonthShort = "Sep"
Oct MonthShort = "Oct"
Nov MonthShort = "Nov"
Dec MonthShort = "Dec"
)
type WeekDay string
const (
Monday WeekDay = "Monday"
Tuesday WeekDay = "Tuesday"
Wednesday WeekDay = "Wednesday"
Thursday WeekDay = "Thursday"
Friday WeekDay = "Friday"
Saturday WeekDay = "Saturday"
Sunday WeekDay = "Sunday"
)
type WeekDayShort string
const (
Mon WeekDayShort = "Mon"
Tue WeekDayShort = "Tue"
Wed WeekDayShort = "Wed"
Thu WeekDayShort = "Thu"
Fri WeekDayShort = "Fri"
Sat WeekDayShort = "Sat"
Sun WeekDayShort = "Sun"
)