diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2017-01-24 21:07:03 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2017-01-24 21:07:03 +0100 |
commit | 3a586419584a1fbfd9052b5bf43dcfcd657e9cb5 (patch) | |
tree | 8ef85c7e1a7e03ec514832778dd8dd19e904cd2a /conf/init.go | |
parent | 51bd6e455dea5c22f8a5c4d1579c472c4937e8d6 (diff) |
Make sure the init functions of all modules are run
We also get the filter function constructor.
Diffstat (limited to 'conf/init.go')
-rw-r--r-- | conf/init.go | 13 |
1 files changed, 13 insertions, 0 deletions
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" +) |