From 3a586419584a1fbfd9052b5bf43dcfcd657e9cb5 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 24 Jan 2017 21:07:03 +0100 Subject: Make sure the init functions of all modules are run We also get the filter function constructor. --- conf/init.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 conf/init.go (limited to 'conf/init.go') diff --git a/conf/init.go b/conf/init.go new file mode 100644 index 0000000..f7d1761 --- /dev/null +++ b/conf/init.go @@ -0,0 +1,13 @@ +package conf + +import ( + // Initialize the different modules. By importing them in this + // way, their constructors are registered in the registry. + _ "github.com/Shugyousha/stasher/input/http" + _ "github.com/Shugyousha/stasher/input/stdin" + + _ "github.com/Shugyousha/stasher/filter/http" + _ "github.com/Shugyousha/stasher/filter/str" + + _ "github.com/Shugyousha/stasher/output/stdout" +) -- cgit v1.2.1-18-gbd029