Skip to content
Myr

modify readme example code (#1961)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by srt180 · committed by thinkerou · parent 31342fc · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
754 unmodified lines
755 field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string,756) bool {757 if date, ok := field.Interface().(time.Time); ok {758 today := time.Now()759 if today.Year() > date.Year() || today.YearDay() > date.YearDay() {759 if today.After(date) {760 return false761 }762 }763 return true
1353 unmodified lines