From 10f0d35111196e188a2071f640509af2649138fc Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Feb 2019 18:24:17 +0100 Subject: fix basic scaffolding --- cmd/dolmetschctl/dolmetschctl.go | 4 ++-- cmd/dolmetschctld/dolmetschctld.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd') diff --git a/cmd/dolmetschctl/dolmetschctl.go b/cmd/dolmetschctl/dolmetschctl.go index ea51762..2f7218e 100644 --- a/cmd/dolmetschctl/dolmetschctl.go +++ b/cmd/dolmetschctl/dolmetschctl.go @@ -26,13 +26,13 @@ import ( "log" "os" - "spreadspace.org/dolmetschctl/controller" + "spreadspace.org/dolmetschctl/pkg/controller" ) func main() { log.Println("hello world.") - c, err := controller.NewController(mixer.Config{"dolmetsch controller"}) + c, err := controller.NewController(controller.Config{"dolmetsch controller"}) if err != nil { log.Println("Error opening the controller: %v", err) os.Exit(1) diff --git a/cmd/dolmetschctld/dolmetschctld.go b/cmd/dolmetschctld/dolmetschctld.go index 346b6fc..be9abd0 100644 --- a/cmd/dolmetschctld/dolmetschctld.go +++ b/cmd/dolmetschctld/dolmetschctld.go @@ -26,7 +26,7 @@ import ( "log" "os" - "spreadspace.org/dolmetschctl/mixer" + "spreadspace.org/dolmetschctl/pkg/mixer" ) func main() { @@ -37,9 +37,9 @@ func main() { log.Println("Error opening the mixer: %v", err) os.Exit(1) } - defer c.Shutdown() + defer m.Shutdown() - if err = c.Init(); err != nil { + if err = m.Init(); err != nil { log.Println("Error initializeing the mixer: %v", err) os.Exit(1) } -- cgit v1.2.3