which lead into goofing around with IO streams...cat-town
parent
631472da41
commit
8ca6f624d4
@ -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))
|
||||
}
|
Loading…
Reference in new issue