Documentation
¶
Index ¶
- func Of[E any](e E) *E
- func StrPtr(notEmpty string) *string
- func ValidateIDAsInt32(id string, entityName string) (int32, error)
- func ValidateIDAsInt32Ptr(id *string, entityName string) (*int32, error)
- func ValidateIDAsInt64(id string, entityName string) (int64, error)
- func ValidateIDAsInt64Ptr(id *string, entityName string) (*int64, error)
- func ZeroIfNil[T any](input *T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateIDAsInt32 ¶ added in v0.3.0
ValidateIDAsInt32 validates and converts a string ID to int32 Returns an error with api.ErrBadRequest if the ID is invalid
func ValidateIDAsInt32Ptr ¶ added in v0.3.0
ValidateIDAsInt32Ptr validates and converts a string pointer ID to int32 pointer Returns nil if the input is nil, otherwise validates and converts
func ValidateIDAsInt64 ¶ added in v0.3.0
ValidateIDAsInt64 validates and converts a string ID to int64 Returns an error with api.ErrBadRequest if the ID is invalid
func ValidateIDAsInt64Ptr ¶ added in v0.3.0
ValidateIDAsInt64Ptr validates and converts a string pointer ID to int64 pointer Returns nil if the input is nil, otherwise validates and converts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.