diff options
| author | Silvan Jegen <s.jegen@gmail.com> | 2016-12-09 21:12:18 +0100 | 
|---|---|---|
| committer | Silvan Jegen <s.jegen@gmail.com> | 2016-12-09 21:12:18 +0100 | 
| commit | 26412f3077698dabcdbdf6a6e40276c56a6f74b5 (patch) | |
| tree | c10ed9b5dbe3612da22247ec6c5afcd1879495eb /main.go | |
| parent | 70299d51aeb8dc53a15eb06d46d4d2419619fd47 (diff) | |
Reorganize files
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 22 | 
1 files changed, 22 insertions, 0 deletions
| @@ -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() +} | 
