summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/dolmetschctld.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-13 22:51:18 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-13 22:51:28 +0100
commit9f81f0c1b6f24246e2ce60ce9bde5a92e7b7451a (patch)
tree1da382ac1722b96eafd3aa95cdfebcb89bb6091f /cmd/dolmetschctld/dolmetschctld.go
parentadded state change subscription to state machine (diff)
move common types to own package
Diffstat (limited to 'cmd/dolmetschctld/dolmetschctld.go')
-rw-r--r--cmd/dolmetschctld/dolmetschctld.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dolmetschctld/dolmetschctld.go b/cmd/dolmetschctld/dolmetschctld.go
index 9fa23fa..0f69b51 100644
--- a/cmd/dolmetschctld/dolmetschctld.go
+++ b/cmd/dolmetschctld/dolmetschctld.go
@@ -27,9 +27,10 @@ import (
"os"
"spreadspace.org/dolmetschctl/pkg/mixer"
+ "spreadspace.org/dolmetschctl/pkg/types"
)
-func addLanguage(sm *StateMachine, name Language, original, interpreter mixer.Channel) {
+func addLanguage(sm *StateMachine, name types.Language, original, interpreter mixer.Channel) {
if err := sm.AddLanguage(name, original, interpreter); err != nil {
log.Printf("adding language '%s' failed: %v", name, err)
os.Exit(1)