diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 17:18:45 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-02-13 17:18:45 +0100 |
commit | 7cc799e9d7c416854eb9935f4369d5ac8e1486b7 (patch) | |
tree | c99484ac46a1853f1d78ea98706f13da4d85a148 /cmd/dolmetschctld/statemachine.go | |
parent | more state (diff) |
added minimal web interface
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r-- | cmd/dolmetschctld/statemachine.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |