Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateAfter ¶
func DateAfter(date Date) validation.Rule
DateAfter returns a validation rule which checks to ensure the date is *after* the provided date.
func DateBefore ¶
func DateBefore(date Date) validation.Rule
DateBefore is used during validation to ensure the date is before the value passed in.
func DateNotZero ¶
func DateNotZero() validation.Rule
DateNotZero ensures the date is not a zero value.
Types ¶
type Date ¶
Date represents a simple date without time used most frequently with business documents.
func (Date) JSONSchema ¶
func (Date) JSONSchema() *jsonschema.Schema
JSONSchema returns a custom json schema for the date.
Click to show internal directories.
Click to hide internal directories.