Documentation
¶
Index ¶
- func Dump(t *testing.T, v any, opts ...Option)
- func Register(v any, opts ...Option)
- type Dumper
- type Masker
- type Option
- func CmpOpts(opts ...cmp.Option) Option
- func Colors(colors bool) Option
- func Env(name string) Option
- func File(name string) Option
- func IgnoreFields(fields ...string) Option
- func IgnorePaths(paths ...string) Option
- func MaskFields(mask string, fields []string) Option
- func MaskPaths(mask string, paths []string) Option
- func RawOutput(raw bool) Option
- func Transformers(fns ...func([]byte) ([]byte, error)) Option
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dumper ¶
type Dumper struct {
// contains filtered or unexported fields
}
type Masker ¶
type Masker struct {
// contains filtered or unexported fields
}
Define a struct for a Masker
func (*Masker) MaskFields ¶
MaskFields is a method on Masker that masks certain fields
type Option ¶
type Option func(o *options)
Define a function type Option that takes a pointer to an options struct
func IgnoreFields ¶
IgnoreFields is an Option that ignores certain fields
func IgnorePaths ¶
IgnorePaths is an Option that ignores certain paths
func MaskFields ¶
MaskFields is an Option that masks certain fields
Click to show internal directories.
Click to hide internal directories.