Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelToTypeDateConverter ¶ added in v0.0.5
ModelToTypeDateConverter converts a date value (time.Time) from to a correctly formatted string (YYYY-MM-DD). The source value is expected to be a time.Time. Returns the converted date or an error if the source is invalid or conversion fails.
func ModelToTypeTimeConverter ¶ added in v0.0.5
ModelToTypeTimeConverter converts a time value to a correctly formatted string (HH:MM). The source value is expected to be a string representation of a time in HHMM or HH:MM format.
func TypeToModelDateConverter ¶
TypeToModelDateConverter converts a date value from a string to a time.Time. The source value is expected to be a string representation of a date in YYYYMMDD or YYYY-MM-DD format. Returns the converted date or an error if the source is invalid or conversion fails.
func TypeToModelTimeConverter ¶
TypeToModelTimeConverter converts a time value from a string to a time.Time. The source value is expected to be a string representation of a date in HHMM or HH:MM format. Returns the converted time or an error if the source is invalid or the conversion fails.
Types ¶
This section is empty.