Documentation
¶
Overview ¶
Package parse provides shared text-to-typed-value conversion functions.
Functions here convert string inputs (dates, durations, identifiers) into Go types. They are thin wrappers that handle empty inputs and use canonical format constants from the config package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Date ¶
Date parses a YYYY-MM-DD string into a time.Time at midnight UTC. An empty string returns the zero time with no error.
Parameters:
- s: date string in YYYY-MM-DD format. Empty is a no-op.
Returns:
- time.Time: parsed date at midnight UTC, or zero time if s is empty.
- error: non-nil if the string is non-empty and malformed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.