aboutsummaryrefslogtreecommitdiff
path: root/widget/api/hello.go
diff options
context:
space:
mode:
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