date

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func InvalidDate(flag, value string, cause error) error

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

func InvalidDateValue(value string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL