Skip to content

Commit

Permalink
Add JSON to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Nov 19, 2024
1 parent cb48e08 commit e7b0583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Not very helpful if you want your snapshots to be as readable as possible!
With `snapshot`, you have full control over how your type is serialised to the snapshot file (if you need it). You can either:

- Let `snapshot` take a best guess at how to serialise your type
- Implement one of `snapshot.Snapper`, [encoding.TextMarshaler], or [fmt.Stringer] to override how it's serialised
- Implement one of `snapshot.Snapper`, [json.Marshaler], [encoding.TextMarshaler], or [fmt.Stringer] to override how it's serialised

See [Serialisation Rules](#serialisation-rules) 👇🏻 for more info on how `snapshot` decides how to snap your value

Expand Down

0 comments on commit e7b0583

Please sign in to comment.