Documentation
¶
Index ¶
- Variables
- func AsSlice(v reflect.Value) []reflect.Value
- func Equal[T any](env Env, in1, in2 T) bool
- func EqualVals(env Env, v1, v2 reflect.Value) bool
- func Format[T any](env Env, in T) string
- func FormatVal(env Env, v reflect.Value) string
- func Order[T any](env Env, a, b T) int
- func OrderVals(env Env, a, b reflect.Value) int
- func TryEqual[T any](env Env, in1, in2 T) (bool, error)
- func TryEqualVals(env Env, v1, v2 reflect.Value) (bool, error)
- func TryFormat[T any](env Env, in T) (string, error)
- func TryFormatVals(env Env, v reflect.Value) (string, error)
- func Value[T any](in T) reflect.Value
- type Env
- type EnvSetter
- type Eq
- type EqDeep
- type EqDefault
- type EqInterface
- type EqMap
- type EqOptFunc
- type EqPointer
- type EqSlice
- type EqStruct
- type EqTrue
- type Field
- type Fmt
- type FmtDeep
- type FmtElide
- type FmtFunc
- type FmtInterface
- type FmtMap
- type FmtPointer
- type FmtSlice
- type FmtStringer
- type FmtStruct
- type FmtWrap
- type MapEntry
- type Opt
- func EqOpt(t reflect.Type, eq Eq) Opt
- func EqOptAll(eq Eq) Opt
- func EqOptBuiltin[T comparable]() Opt
- func FmtOpt(typ reflect.Type, fmt Fmt) Opt
- func FmtOptAll(fmt Fmt) Opt
- func FmtOptFor[T any](typed func(Env, T) string) Opt
- func FmtOptStringer[T fmt.Stringer]() Opt
- func OrdOpt(t reflect.Type, ord Ord) Opt
- func OrdOptAll(ord Ord) Opt
- type OptFunc
- type Opts
- type Ord
- type OrdDeep
- type Tag
- type Val
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type EqInterface ¶
type EqInterface struct {
Elem Eq
}
type Field ¶
type Field interface {
GetField(t reflect.Type) reflect.StructField
// contains filtered or unexported methods
}
func EmbedField ¶
func EmbedTypeField ¶
func NamedField ¶
type FmtInterface ¶
type FmtInterface struct {
Elem Fmt
}
type FmtPointer ¶
type FmtPointer struct {
Elem Fmt
}
type FmtStringer ¶
type FmtStringer struct{}
type MapEntry ¶
func AsMapEntries ¶
type Opt ¶
type Opt interface {
Update(EnvSetter)
}
func EqOptBuiltin ¶
func EqOptBuiltin[T comparable]() Opt
func FmtOptStringer ¶
Click to show internal directories.
Click to hide internal directories.