summaryrefslogtreecommitdiff
path: root/model/storage.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-03-04 20:39:17 +0100
committerxengineering <me@xengineering.eu>2024-03-04 20:45:11 +0100
commit74fc87dcfaa8a65c14c0ef6fe88b6df02f2e90cb (patch)
tree5d49a81d5da76d4b632d16f9da746f172f736139 /model/storage.go
parentb62c686702622b747ab082b7b12b3e611e1d7e1f (diff)
downloadceres-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/storage.go')
0 files changed, 0 insertions, 0 deletions