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)) }