From 7cc799e9d7c416854eb9935f4369d5ac8e1486b7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Feb 2019 17:18:45 +0100 Subject: added minimal web interface --- cmd/dolmetschctld/statemachine.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/dolmetschctld/statemachine.go') diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go index b1e74c7..7082460 100644 --- a/cmd/dolmetschctld/statemachine.go +++ b/cmd/dolmetschctld/statemachine.go @@ -51,6 +51,11 @@ func (s State) String() string { } } +func (s State) MarshalText() (data []byte, err error) { + data = []byte(s.String()) + return +} + type Language string func (l Language) String() string { -- cgit v1.2.3