Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FluentArrayTemplate ¶
func FluentArrayTemplate[T ArrayMethods[T]](x T)
func FluentObjectTemplate ¶
func FluentObjectTemplate[T ObjectMethods[T]](x T)
FluentObjectTemplate exercises every fluent method that's common between Builder and Context
Types ¶
type ArrayMethods ¶
type ArrayMethods[T any] interface { Field(val any) T Any(val any) T Base64(b []byte, enc *base64.Encoding) T Dur(d time.Duration) T Err(err error) T Float32(val float32) T Int(val int) T Interface(val any) T Str(val string) T Time(t time.Time) T Bool(val bool) T Float64(val float64) T Int64(val int64) T Uint64(val uint64) T Stringer(val fmt.Stringer) T RawJSON(val json.RawMessage) T }
type ByteStringer ¶ added in v0.4.0
type ByteStringer []byte
type IntDataType ¶
type IntDataType int
type ObjectMethods ¶
type ObjectMethods[T any] interface { Field(key string, val any) T Any(key string, val any) T Base64(key string, b []byte, enc *base64.Encoding) T Dur(key string, d time.Duration) T Err(err error) T Float32(key string, val float32) T Int(key string, val int) T Interface(key string, val any) T Str(key string, val string) T Time(key string, t time.Time) T Bool(key string, val bool) T Float64(key string, val float64) T Int64(key string, val int64) T Uint64(key string, val uint64) T Stringer(key string, val fmt.Stringer) T RawJSON(key string, val json.RawMessage) T }
Click to show internal directories.
Click to hide internal directories.