How do I end `scanner.Scan` loop in console for golang?
<p>I have two (or potentially more) lines of input that I would like the program to take. eg.</p>

<pre><code>1 2 3 4
5 6 7 8
</code></pre>

<p>According to the official doc, using </p>

<pre><code>for scanner.Scan() {
}
</code></pre>

<p>will cause infinite lines to be scan until it reach EOF or error, are there other functions that will take two lines of input instead?</p>