22 lines
357 B
Go
Raw Normal View History

2018-03-22 21:26:52 +00:00
package filteranime
import (
"time"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
// StartDate ...
func StartDate(ctx *aero.Context) string {
return editorList(
ctx,
"Anime without a valid start date",
func(anime *arn.Anime) bool {
_, err := time.Parse(arn.AnimeDateFormat, anime.StartDate)
return err != nil
},
nil,
)
}