summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input/stdin.go4
-rw-r--r--main.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/input/stdin.go b/input/stdin.go
index 5acfa5e..25840ef 100644
--- a/input/stdin.go
+++ b/input/stdin.go
@@ -13,6 +13,10 @@ type StdinInput struct {
retchan chan *work.Work
}
+func NewStdin() *StdinInput {
+ return &StdinInput{}
+}
+
func (i *StdinInput) Start() chan *work.Work {
i.retchan = make(chan *work.Work, 100)
r := bufio.NewReader(os.Stdin)
diff --git a/main.go b/main.go
index 7d60fb5..23ae701 100644
--- a/main.go
+++ b/main.go
@@ -13,7 +13,7 @@ func main() {
ffmap["F"] = func(s string) string { return strings.ToUpper(s) }
m := Manager{
- Input: input.NewHTTPInput("", ":8080"),
+ Input: input.NewStdin(),
Filter: filter.NewStringFilter(ffmap),
Output: &output.StdoutOutput{},
}