Documentation
¶
Index ¶
- Variables
- func Append[T comparable](vals []T, val T) []T
- func Coalesce[T any](vals ...T) T
- func Compare[T ORDERED](a, b T) int
- func If[T any](cond bool, a, b T) T
- func IndexOf[T comparable](vals []T, val T) int
- func IsZeroValue(x interface{}) bool
- func Max[T NUMERIC](a, b T) T
- func Min[T NUMERIC](a, b T) T
- func Must[T any](val T, err error) T
- func NewGUID() string
- func NewNonCancelableContext(ctx context.Context) context.Context
- func ParseTags(tags string) map[string]string
- type Boolean
- type Duration
- type Enumeration
- type FLOAT
- type Float
- type INTEGER
- type Integer
- type Json
- type NUMERIC
- type ORDERED
- type RWBoolean
- type RWDuration
- type RWFloat
- type RWInteger
- type RWJson
- type RWString
- type RWStrings
- type String
- type Strings
Constants ¶
This section is empty.
Variables ¶
View Source
var NULL interface{}
Functions ¶
func Append ¶
func Append[T comparable](vals []T, val T) []T
func IndexOf ¶
func IndexOf[T comparable](vals []T, val T) int
func IsZeroValue ¶
func IsZeroValue(x interface{}) bool
Types ¶
type Enumeration ¶
type Enumeration[T comparable] interface { Get(ctx context.Context) (T, error) }
type RWDuration ¶
Click to show internal directories.
Click to hide internal directories.