Documentation
¶
Overview ¶
Package date provides error constructors for date parsing and validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvalidDate ¶
InvalidDate returns an error for an invalid date flag value.
Parameters:
- flag: the flag name (e.g. "--since", "--until").
- value: the invalid date string.
- cause: the underlying parse error.
Returns:
- error: "invalid <flag> date <value> (expected YYYY-MM-DD): <cause>"
func InvalidDateValue ¶
InvalidDateValue returns an error for an invalid date string.
Parameters:
- value: the invalid date string.
Returns:
- error: "invalid date <value> (expected YYYY-MM-DD)"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.