aboutsummaryrefslogtreecommitdiff
path: root/widget/api/hello.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-22 23:00:18 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-22 23:00:18 +0200
commit215ce412a8bf37f31f5e779fe45930b87b1bffec (patch)
tree2d1ff059478e1546cb8b192739aa1becc6082c7c /widget/api/hello.go
parentb19108ed8d4ad56e7bbf1ec59d0470e118275a49 (diff)
feat(widget): creditsfeat/custom-widget
Diffstat (limited to 'widget/api/hello.go')
-rw-r--r--widget/api/hello.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/widget/api/hello.go b/widget/api/hello.go
index 7995a36..fd071d5 100644
--- a/widget/api/hello.go
+++ b/widget/api/hello.go
@@ -5,8 +5,6 @@ import (
"io"
)
-type Method string
-
const MethodHello Method = "hello"
type Hello struct {
@@ -15,7 +13,7 @@ type Hello struct {
Version uint `json:"version"`
}
-func (h *Hello) Respond(w io.Writer) error {
+func (h *Hello) Respond(w io.Writer, _ ...string) error {
b, err := json.Marshal(h)
if err != nil {
return err