From 218985e8fadd53c3d034d50af45450aa40c990ff Mon Sep 17 00:00:00 2001 From: Daniel Bodky Date: Mon, 2 Dec 2024 09:55:12 +0100 Subject: [PATCH] docs(readme): Update PartialResult example Apparently, the public field `State` of the `PartialResult` struct has been made private and needs to be set via `SetState()` now. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dec50ff..f1249cc 100644 --- a/README.md +++ b/README.md @@ -123,10 +123,13 @@ o := Overall{} o.Add(0, "Something is OK") pr := PartialResult{ - State: check.OK, Output: "My Subcheck", } +if err := pr.SetState(check.OK); err != nil { + fmt.Printf(%s, err) +} + o.AddSubcheck(pr) fmt.Println(o.GetOutput())