Documentation
¶
Index ¶
- func ConvertTimezone(t time.Time, currLoc *time.Location, newLoc *time.Location) time.Time
- func FilterList[T any](list *[]T, fn func(T) bool) *[]T
- func FilterListP[T any](list *[]*T, fn func(*T) bool) *[]*T
- func FindInList[T any](list *[]T, fn func(T) bool) *T
- func FindInListP[T any](list *[]*T, fn func(*T) bool) *T
- func GetDynamicField[T any](structPtr interface{}, fieldName string, vType T) (value T, err error)
- func GetNullInt32(v int) (nullInt32 sql.NullInt32)
- func GetOrCreate[K comparable, V any](mapObj map[K]*V, key K) *V
- func GetOrigin(originHeader string) (origin string)
- func InSameClock(t time.Time, loc *time.Location) time.Time
- func OffsetTime(t time.Time, offset int) (withOffset time.Time)
- func OffsetToLoc(offset int) (loc *time.Location)
- func RemoveSliceOrdered[T any](slice *[]T, i int)
- func RemoveSliceUnordered[T any](slice *[]T, i int)
- func SetDynamicField[T any](structPtr interface{}, fieldName string, value T) (err error)
- func TimezoneToOffset(timezone string) int
- func ToPascalCase(str string) string
- func ToSnakeCase(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTimezone ¶ added in v1.0.6
func FilterList ¶ added in v1.0.3
func FilterListP ¶ added in v1.0.3
func FindInList ¶
func FindInListP ¶ added in v1.0.3
func GetDynamicField ¶
func GetNullInt32 ¶
func GetOrCreate ¶
func GetOrCreate[K comparable, V any](mapObj map[K]*V, key K) *V
func OffsetToLoc ¶
func RemoveSliceOrdered ¶ added in v1.0.8
func RemoveSliceUnordered ¶ added in v1.0.8
func SetDynamicField ¶
func TimezoneToOffset ¶ added in v1.0.6
func ToPascalCase ¶ added in v1.0.4
func ToSnakeCase ¶ added in v1.0.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.