Documentation
¶
Index ¶
- func Of[E any](e E) *E
- func SafeString(s *string) string
- 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 SafeString ¶
SafeString returns a string representation of a string pointer.
func ValidateIDAsInt32 ¶
ValidateIDAsInt32 validates and converts a string ID to int32
func ValidateIDAsInt32Ptr ¶
ValidateIDAsInt32Ptr validates and converts a string pointer ID to int32 pointer
func ValidateIDAsInt64 ¶
ValidateIDAsInt64 validates and converts a string ID to int64
func ValidateIDAsInt64Ptr ¶
ValidateIDAsInt64Ptr validates and converts a string pointer ID to int64 pointer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.