summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..7d60fb5
--- /dev/null
+++ b/main.go
@@ -0,0 +1,22 @@
+package main
+
+import (
+ "strings"
+
+ "github.com/Shugyousha/stasher/filter"
+ "github.com/Shugyousha/stasher/input"
+ "github.com/Shugyousha/stasher/output"
+)
+
+func main() {
+ ffmap := make(map[string]func(string) string, 10)
+ ffmap["F"] = func(s string) string { return strings.ToUpper(s) }
+
+ m := Manager{
+ Input: input.NewHTTPInput("", ":8080"),
+ Filter: filter.NewStringFilter(ffmap),
+ Output: &output.StdoutOutput{},
+ }
+
+ m.Run()
+}