Starting to goof around with binary search

which lead into goofing around with IO streams...
This commit is contained in:
Dan Buch
2012-11-18 08:30:49 -05:00
parent 631472da41
commit 8ca6f624d4
2 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
"fmt"
"io/ioutil"
"os"
)
func main() {
whiteListTxt, err := ioutil.ReadAll(os.Stdin)
if err != nil {
fmt.Println("UGH: ", err)
os.Exit(1)
}
fmt.Println("YAP")
fmt.Println("Got: ", string(whiteListTxt))
}