Adding read command

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
Dave Henderson
2018-08-12 14:45:26 -04:00
parent 421080f248
commit 6f55b00772
8 changed files with 189 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import (
"context"
"os"
"os/signal"
"time"
"github.com/hairyhenderson/go-onerng/cmd"
)
@ -12,7 +11,7 @@ import (
func main() {
ctx := context.Background()
ctx, cancel := context.WithDeadline(ctx, time.Now().Add(3*time.Second))
ctx, cancel := context.WithCancel(ctx)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
defer func() {