This commit is contained in:
Gerasimos (Makis) Maropoulos 2023-08-25 11:45:54 +03:00
parent 21fa56720f
commit 29637dad2a
No known key found for this signature in database
GPG Key ID: B9839E9CD30B7B6B
2 changed files with 2 additions and 2 deletions

View File

@ -2,5 +2,5 @@ package jsonx
// Exampler is an interface used by testing to generate examples. // Exampler is an interface used by testing to generate examples.
type Exampler interface { type Exampler interface {
ListExamples() []string ListExamples() any
} }

View File

@ -116,7 +116,7 @@ func (t ISO8601) MarshalJSON() ([]byte, error) {
} }
// Examples returns a list of example values. // Examples returns a list of example values.
func (t ISO8601) ListExamples() []string { func (t ISO8601) ListExamples() any {
return []string{ return []string{
"2006-01-02T15:04:05", "2006-01-02T15:04:05",
"2022-08-09T00:00:00.000000", "2022-08-09T00:00:00.000000",