diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-10-17 18:10:54 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey94@gmail.com> | 2017-10-19 02:22:28 -0700 |
| commit | 7847ab8270efab472b7b6a4bf9a57f5b83cb7212 (patch) | |
| tree | dc8cb96be83a978389cd59793d18ad13af8df312 /util | |
| parent | 36b313c802f9a8d23f2ad8ce5a59aa05f5925a2f (diff) | |
fmt almost done
Diffstat (limited to 'util')
| -rw-r--r-- | util/util.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/util/util.go b/util/util.go index 9f62b45..e7fc522 100644 --- a/util/util.go +++ b/util/util.go @@ -24,9 +24,7 @@ package util import ( - "bufio" "math" - "os" "strconv" "unsafe" ) @@ -99,14 +97,6 @@ func MinInt64(a, b int64) int64 { return b } -// ReadLine returns a line of input from standard input. An empty string is -// returned if the user didn't insert anything or on error. -func ReadLine() (string, error) { - scanner := bufio.NewScanner(os.Stdin) - scanner.Scan() - return scanner.Text(), scanner.Err() -} - // AtoiOrPanic converts a string to an int or it panics. Should only be used in // situations where the input MUST be a decimal number. func AtoiOrPanic(input string) int { |