Skip to content

stdin example #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dbubel-rm opened this issue Sep 10, 2017 · 2 comments
Closed

stdin example #125

dbubel-rm opened this issue Sep 10, 2017 · 2 comments
Labels

Comments

@dbubel-rm
Copy link

Doing a go build on stdin.go in the examples folder and then a ./stdin causes the program to hang on MAC El Capitan 10.11.6.

@jroimartin
Copy link
Owner

It hangs because it's waiting for stdin data. Try something like this:

$ cat /bin/ls | go run _examples/stdin.go

@dbubel-rm
Copy link
Author

That worked, I figured it was waiting for keyboard stdin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants