Versions in this module Expand all Collapse all v0 v0.0.1 Jul 23, 2023 Changes in this version + const DefaultUpdateFlagName + var ErrValueDifference = errors.New("values are not equal") + func Init(opts ...InitOption) + type Cmp struct + Options cmp.Options + func (c Cmp) Equal(want, got any) (err error) + type Codec = codecutil.Codec + type Comparer interface + Equal func(want, got any) error + type Golden struct + CmpOptions cmp.Options + Codec Codec + Comparer Comparer + Dir string + FS fs.FS + func (o *Golden) Assert(tb TB, name string, value any) + type InitOption interface + func WithFlagName(name string) InitOption + type JSONCodec struct + ProtoMarshalOptions protojson.MarshalOptions + ProtoUnmarshalOptions protojson.UnmarshalOptions + func (c *JSONCodec) Marshal(v any) ([]byte, error) + func (c *JSONCodec) Unmarshal(data []byte, v any) error + type TB interface + Errorf func(format string, args ...any) + Helper func() + Logf func(format string, args ...any) + type TextCodec struct + Fallback Codec + func (t TextCodec) Marshal(v any) ([]byte, error) + func (t TextCodec) Unmarshal(data []byte, v any) error + type TextProtoCodec struct + ProtoMarshalOptions prototext.MarshalOptions + ProtoUnmarshalOptions prototext.UnmarshalOptions + func (c *TextProtoCodec) Marshal(v any) ([]byte, error) + func (c *TextProtoCodec) Unmarshal(data []byte, v any) error + type WriteFileFS interface + WriteFile func(name string, data []byte, perm os.FileMode) error