Documentation ¶
Index ¶
- func BoolP(b bool) *bool
- func Contains[T comparable](slice []T, value T) bool
- func Dedup[T comparable](s []T) []T
- func MapP(m map[string]interface{}) *map[string]interface{}
- func NullBool(b bool) sql.NullBool
- func NullInt32(i int32) sql.NullInt32
- func NullStr(s string) sql.NullString
- func NullTime(t time.Time) sql.NullTime
- func NullUUID(u uuid.UUID) uuid.NullUUID
- func SortSliceInt32(s []int32)
- func StrP(s string) *string
- func TimeP(t time.Time) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, value T) bool
contains is a helper function that iterates over a slice and returns true if the given value is found
func NullStr ¶ added in v0.3.0
func NullStr(s string) sql.NullString
func SortSliceInt32 ¶ added in v0.3.0
func SortSliceInt32(s []int32)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.