Skip to content
Snippets Groups Projects

Refactor TradingHours struct and validation

Merged Daniel Naude requested to merge trading_hours into main
1 file
+ 0
2
Compare changes
  • Side-by-side
  • Inline
+ 0
2
@@ -325,8 +325,6 @@ func formatTimestampsWithTimeZoneInSlice(fieldValue reflect.Value, location *tim
return nil
}
// TradingHours represents an array of (StartTime,EndTime) pairs, one for each day of the week.
// The array is 0 indexed, with 0 being Sunday and 6 being Saturday and 7 being public holidays.
type TradingHours struct {
Monday TradingHoursDay `json:"monday"`
Tuesday TradingHoursDay `json:"tuesday"`
Loading