Documentation
¶
Index ¶
- func BytesToMap(v []byte) (types.Map[any], error)
- func IgnoreErr[T any](v T, _ error) T
- func NullToPtr[T any](v types.Null[T]) *T
- func Ptr[T any](v T) *T
- func PtrToZero[T any](v *T) T
- func RawTo[T any](v []byte) (*T, error)
- func RawToNull[T any](v []byte) (types.Null[T], error)
- func SQLNullToPtr[T any](v sql.Null[T]) *T
- func StringPtrToTime(v *string, opts ...OptionTime) (time.Time, error)
- func StringPtrToTimePtr(v *string, opts ...OptionTime) (*time.Time, error)
- func StringToTime(v string, opts ...OptionTime) (time.Time, error)
- func TimeToStringPtr(v *time.Time, opts ...OptionTime) *string
- type OptionTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SQLNullToPtr ¶
func StringPtrToTime ¶ added in v0.1.6
func StringPtrToTime(v *string, opts ...OptionTime) (time.Time, error)
func StringPtrToTimePtr ¶ added in v0.1.6
func StringPtrToTimePtr(v *string, opts ...OptionTime) (*time.Time, error)
func StringToTime ¶ added in v0.1.6
func StringToTime(v string, opts ...OptionTime) (time.Time, error)
func TimeToStringPtr ¶ added in v0.1.6
func TimeToStringPtr(v *time.Time, opts ...OptionTime) *string
Types ¶
type OptionTime ¶
type OptionTime func(o *optionTime)
func WithTimeFormat ¶
func WithTimeFormat(format string) OptionTime
Click to show internal directories.
Click to hide internal directories.