diff options
author | xengineering <me@xengineering.eu> | 2024-03-04 20:39:17 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-03-04 20:45:11 +0100 |
commit | 74fc87dcfaa8a65c14c0ef6fe88b6df02f2e90cb (patch) | |
tree | 5d49a81d5da76d4b632d16f9da746f172f736139 /model/database.go | |
parent | b62c686702622b747ab082b7b12b3e611e1d7e1f (diff) | |
download | ceres-74fc87dcfaa8a65c14c0ef6fe88b6df02f2e90cb.tar ceres-74fc87dcfaa8a65c14c0ef6fe88b6df02f2e90cb.tar.zst ceres-74fc87dcfaa8a65c14c0ef6fe88b6df02f2e90cb.zip |
model: Implement Stringer interface for Recipe
This allows to print a recipe with a fmt.Printf() call more easily:
fmt.Printf("%s\n", recipe)
This is also used for better error output in unit tests with t.Fatalf().
The Stringer interface is implemented with the JSON package because an
indented version of a recipe is a useful string representation.
Diffstat (limited to 'model/database.go')
0 files changed, 0 insertions, 0 deletions