Versions in this module Expand all Collapse all v0 v0.19.4 Nov 1, 2026 Changes in this version + func MapAnyToJSONString(payload MapAny) string + func MapAnyToStruct(payload MapAny) *structpb.Struct + func MapAnyToStructTarget(m MapAny, target interface{}) error + func MapJSON[T any, U any](j JSON[T], fn func(T) *U) *U + func MapPtr[T any, U any](ptr *T, fn func(*T) *U) *U + func Ptr[T any](v T) *T + func StructToMapString(payload *structpb.Struct) map[string]string + type CompressedText string + func (CompressedText) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (CompressedText) GormDataType() string + func (c *CompressedText) Scan(value interface{}) error + func (c CompressedText) String() string + func (c CompressedText) Value() (driver.Value, error) + type CompressedTextMap map[string][]string + func CompressedTextMapFromMap(m map[string][]string) CompressedTextMap + func (CompressedTextMap) GormDBDataType(db *gorm.DB, field *schema.Field) string + func (CompressedTextMap) GormDataType() string + func (c *CompressedTextMap) Scan(value interface{}) error + func (c CompressedTextMap) ToMap() map[string][]string + func (c CompressedTextMap) Value() (driver.Value, error) + type JSON struct + Data T + func (j *JSON[T]) Append(items ...any) + func (j *JSON[T]) Get() T + func (j *JSON[T]) Scan(value interface{}) error + func (j *JSON[T]) Set(data T) + func (j JSON[T]) Clone() JSON[T] + func (j JSON[T]) GetOrDefault(defaultValue T) T + func (j JSON[T]) GetOrZero() T + func (j JSON[T]) IfPresent(fn func(T)) + func (j JSON[T]) IsEmpty() bool + func (j JSON[T]) IsNil() bool + func (j JSON[T]) IsPresent() bool + func (j JSON[T]) Len() int + func (j JSON[T]) ToOptional() Optional[T] + func (j JSON[T]) Value() (driver.Value, error) + type MapAny map[string]any + func ProtoToMap(message proto.Message) MapAny + func StructToMapAny(payload *structpb.Struct) MapAny + func StructToMapAnyFromStruct(v interface{}) MapAny + func (m *MapAny) Scan(value interface{}) error + func (m MapAny) Clone() MapAny + func (m MapAny) Delete(key string) MapAny + func (m MapAny) Each(fn func(key string, value any)) + func (m MapAny) Filter(fn func(key string, value any) bool) MapAny + func (m MapAny) Get(key string, defaultValue ...any) any + func (m MapAny) GetBool(key string, defaultValue ...bool) bool + func (m MapAny) GetInt(key string, defaultValue ...int) int + func (m MapAny) GetInt32(key string, defaultValue ...int32) int32 + func (m MapAny) GetMap(key string, defaultValue ...MapAny) MapAny + func (m MapAny) GetString(key string, defaultValue ...string) string + func (m MapAny) Has(key string) bool + func (m MapAny) IsEmpty() bool + func (m MapAny) Keys() []string + func (m MapAny) Len() int + func (m MapAny) Map(fn func(key string, value any) (string, any)) MapAny + func (m MapAny) Merge(other MapAny) MapAny + func (m MapAny) Set(key string, value any) MapAny + func (m MapAny) Value() (driver.Value, error) + func (m MapAny) Values() []any + type Optional struct + func Empty[T any]() Optional[T] + func FlatMapOpt[T any, U any](o Optional[T], fn func(T) Optional[U]) Optional[U] + func MapOpt[T any, U any](o Optional[T], fn func(T) *U) Optional[U] + func OfNullablePtr[T any](v *T) Optional[*T] + func OfNullable[T any](v *T) Optional[T] + func Of[T any](v T) Optional[T] + func (o Optional[T]) Filter(pred func(T) bool) Optional[T] + func (o Optional[T]) Get() *T + func (o Optional[T]) GetOrDefault(defaultValue T) T + func (o Optional[T]) GetOrZero() T + func (o Optional[T]) IfPresent(fn func(T)) + func (o Optional[T]) IfPresentOrElse(action func(T), emptyAction func()) + func (o Optional[T]) IsNil() bool + func (o Optional[T]) IsPresent() bool + func (o Optional[T]) OrElse(defaultValue T) T + type ProtoJSON struct + Data T + func (p *ProtoJSON[T]) Clone() ProtoJSON[T] + func (p *ProtoJSON[T]) Get() T + func (p *ProtoJSON[T]) IsEmpty() bool + func (p *ProtoJSON[T]) Scan(value interface{}) error + func (p *ProtoJSON[T]) Set(data T) + func (p *ProtoJSON[T]) Value() (driver.Value, error) + type ProtoJSONMap struct + Fields map[string]ProtoJSON[T] + func NewProtoJSONMap[T proto.Message]() *ProtoJSONMap[T] + func (p *ProtoJSONMap[T]) Clear() + func (p *ProtoJSONMap[T]) Clone() ProtoJSONMap[T] + func (p *ProtoJSONMap[T]) Delete(key string) + func (p *ProtoJSONMap[T]) Get(key string) T + func (p *ProtoJSONMap[T]) Has(key string) bool + func (p *ProtoJSONMap[T]) IsEmpty() bool + func (p *ProtoJSONMap[T]) Keys() []string + func (p *ProtoJSONMap[T]) Len() int + func (p *ProtoJSONMap[T]) Scan(value interface{}) error + func (p *ProtoJSONMap[T]) Set(key string, data T) + func (p ProtoJSONMap[T]) Value() (driver.Value, error) + type Slice []T + func Map[T any, R any](s Slice[T], fn func(T) R) Slice[R] + func (s *Slice[T]) Append(items ...T) Slice[T] + func (s *Slice[T]) Scan(value interface{}) error + func (s Slice[T]) Clone() Slice[T] + func (s Slice[T]) Filter(fn func(T) bool) Slice[T] + func (s Slice[T]) Len() int + func (s Slice[T]) Value() (driver.Value, error) + type StringSlice []string + func ParseStringSlice(input []string) StringSlice + func (s *StringSlice) Append(items ...string) StringSlice + func (s *StringSlice) FromDelimitedString(input string, delimiters ...string) StringSlice + func (s *StringSlice) Remove(item string) StringSlice + func (s *StringSlice) RemoveAt(index int) StringSlice + func (s *StringSlice) Scan(value interface{}) error + func (s StringSlice) Clone() StringSlice + func (s StringSlice) Contains(item string) bool + func (s StringSlice) Filter(fn func(string) bool) StringSlice + func (s StringSlice) IndexOf(item string) int + func (s StringSlice) Join(sep string) string + func (s StringSlice) Map(fn func(string) string) StringSlice + func (s StringSlice) Unique() StringSlice + func (s StringSlice) Value() (driver.Value, error)