From b0c4b2fbd4098f88b1abc854854fa24c7402c70a Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 25 Dec 2016 13:58:37 +0100 Subject: Add and use NewStdin function --- input/stdin.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'input') 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) -- cgit v1.2.3