DEV Community

Cook
Cook

Posted on

bufio split note

use defined split func hf(a, b)
bufio scanner has an buf
pass buf to hf(buf[0-10] , b)
hf(buf ,b ) return advance,token,err
Scan got token, pass buf[advance,10] to hf(a, b)

Top comments (0)