L
L
LamerFromSpace2019-10-12 14:05:52
linux
LamerFromSpace, 2019-10-12 14:05:52

How to call io.EOF from terminal?

The function accepts the io.Reader interface. I pass os.Stdin into it. Reads input like this:
src.Read(byteArray)
How to end input with an io.EOF error? No response on CTRL+D

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2019-10-12
@alfss

https://gobyexample.com/signals

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question