From 51bd6e455dea5c22f8a5c4d1579c472c4937e8d6 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 22 Jan 2017 16:17:34 +0100 Subject: Use registry for output modules --- registry/registry.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 7f0149f..6bb99f0 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -3,15 +3,11 @@ package registry import ( "github.com/Shugyousha/stasher/filter" "github.com/Shugyousha/stasher/input" - "github.com/Shugyousha/stasher/work" + "github.com/Shugyousha/stasher/output" ) var ( Inputregistry map[string]func(map[string]string) input.Input = make(map[string]func(map[string]string) input.Input) Filterregistry map[string]func(map[string]string) filter.Filter = make(map[string]func(map[string]string) filter.Filter) - Outputregistry map[string]func(map[string]string) Output = make(map[string]func(map[string]string) Output) + Outputregistry map[string]func(map[string]string) output.Output = make(map[string]func(map[string]string) output.Output) ) - -type Output interface { - Output(*work.Work) -} -- cgit v1.2.3