blob: 7d60fb58fb5b19475560aa4c7fd92633e3450203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()
}
|