This commit is contained in:
2026-07-21 03:49:47 +03:00
commit e8a0b2ba42
65 changed files with 40163 additions and 0 deletions

14
helpers.go Normal file
View File

@@ -0,0 +1,14 @@
package flashscore
import "time"
func DiscardScheduledMatchesFurtherThan(matches []ScheduledMatch, furtherThan time.Duration) (result []ScheduledMatch) {
now := time.Now()
for _, m := range matches {
if now.Add(furtherThan).After(m.StartTime) {
result = append(result, m)
}
}
return
}