postgres

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelToTypeDateConverter added in v0.0.5

func ModelToTypeDateConverter(src any) (any, error)

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

func ModelToTypeTimeConverter(src any) (any, error)

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

func TypeToModelDateConverter(src any) (any, error)

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

func TypeToModelTimeConverter(src any) (any, error)

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.

Jump to

Keyboard shortcuts

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