yeqown / go-qrcode

To help gophers generate QR Codes with customized styles, such as color, block size, block shape, and icon.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot install package on go 1.12 because of math.MaxInt

eeddaann opened this issue · comments

I couldn't install the package on vscode with go 1.12. got the following error message:

go get -u github.com/yeqown/go-qrcode
# github.com/yeqown/go-qrcode
..\..\go\src\github.com\yeqown\go-qrcode\mask_evaluation.go:35:10: undefined: math.MaxInt
..\..\go\src\github.com\yeqown\go-qrcode\mask_evaluation.go:113:10: undefined: math.MaxInt
..\..\go\src\github.com\yeqown\go-qrcode\mask_evaluation.go:148:10: undefined: math.MaxInt

I guess the problem is similar to the bug which described here:
buger/goterm@b630d37

MR is accepted, but upgrading the go version maybe help you follow the community better 😬 ~