22 lines
357 B
Go
22 lines
357 B
Go
|
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,
|
||
|
)
|
||
|
}
|