UnnoTed / fileb0x

a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
MIT License
634 stars 53 forks source link

bufio.Scanner limitations #28

Closed iu0v1 closed 6 years ago

iu0v1 commented 6 years ago

Hey. When trying to build a big project came across a problem:

panic: bufio.Scanner: token too long

goroutine 1 [running]:
main.main()
        Q:/Soft/Go/GOPATH/src/github.com/UnnoTed/fileb0x/main.go:127 +0x24f1
main.go:1: running "fileb0x": exit status 2

As a solution I would suggest using bufio.Reader (PR on the way).