When working with bufio.ScanLines for retrieving text from file per say, if the string in line exceed default Scan (64K), then we cannot get the full line.
To overcome this problem, simply set maxCapacity to the scan.
In this example we set the maxCapacity to 512MB.
Hope this helps!!