Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModelToTypeDateConverter ¶
ModelToTypeDateConverter converts a date value from a string to a correctly formatted string The source value is expected to be a string representation of a date in YYYYMMDD or YYYY-MM-DD format. Returns the formatted date (YYYY-MM-DD) or an error if the source is invalid or conversion fails.
This is a converter that can only be used with an sqlite database, which stores dates as a string.
func ModelToTypeTimeConverter ¶ added in v0.0.5
ModelToTypeTimeConverter converts a string time value from to a correctly formatted string. The source value is expected to be a string representation of a time in HHMM format. Returns the formatted time (HH:MM) or an error if the source is invalid or conversion fails.
This is a converter that can only be used with an sqlite database, which stores times as a string.
func TypeToModelDateConverter ¶
TypeToModelDateConverter converts a date value from a string to a correctly formatted string. The source value is expected to be a string representation of a date in YYYYMMDD or YYYY-MM-DD format. Returns the formatted date (YYYYMMDD) or an error if the source is invalid or conversion fails.
This is a converter that can only be used with an sqlite database, which stores dates as a string.
func TypeToModelTimeConverter ¶
TypeToModelTimeConverter converts a string time value from to a correctly formatted string. The source value is expected to be a string representation of a time in HHMM or HH:MM format. Returns the formatted time (HHMM) or an error if the source is invalid or conversion fails.
This is a converter that can only be used with an sqlite database, which stores times as a string.
Types ¶
This section is empty.