From 2dbd22114b4906c6ae60de15f4c30a5ea38441c6 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 4 Dec 2021 00:07:41 +0100 Subject: Fixed standard input error handling --- pkg/pointer/pointer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/pointer/pointer.go') diff --git a/pkg/pointer/pointer.go b/pkg/pointer/pointer.go index 4467235..1044cff 100644 --- a/pkg/pointer/pointer.go +++ b/pkg/pointer/pointer.go @@ -9,7 +9,7 @@ import ( var myRand = rand.New(rand.NewSource(time.Now().UnixNano())) -type InputFunction func() int +type InputFunction func() (int, error) type OutputFunction func(v int) type Pointer struct { -- cgit v1.2.3