Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit a7ddb67

Browse files
committed
Added missing documentation update
1 parent f0dc25b commit a7ddb67

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,19 @@ func main() {
5151
mc.Destroy()
5252
}
5353

54-
// Health output is in JSON format. Don't forget to add json tags.
54+
// Health output will be in JSON format.
5555
type exampleHealthOutput struct {
5656
Status string `json:"status"`
5757
}
5858

5959
// Our health callback routine.
60-
func healthCallback() interface{} {
61-
return exampleHealthOutput{
60+
func healthCallback() string {
61+
state := exampleHealthOutput{
6262
Status: "ok",
6363
}
64+
65+
j, _ := json.Marshal(state)
66+
return string(j)
6467
}
6568
```
6669

0 commit comments

Comments
 (0)