Re: [go-nuts] bufio: Scanner.Split starts panic when Scan is already called

2016-09-25 Thread Rob Pike
This code is not using the API correctly, and the implementation notices this and complains, as it should. Whether it worked in 1.2.1 is unknown to me, but the Split functions are meant to be called only from the Scan method, and are exported for the sole purpose of initializing the Scanner. Your

[go-nuts] bufio: Scanner.Split starts panic when Scan is already called

2016-09-25 Thread bupjae
(Note: This is complain rather than real bug report. So I wrote here instead of github issue tracker) Related code: https://play.golang.org/p/7l0pUOrX_t Background: This code is intended to submit to online judge site (i.e. provides programming questions and judge system to check whether the s