On Tue, Nov 27, 2018 at 8:03 PM hui zhang <fastfad...@gmail.com> wrote:
> happen in go 1.10.2 1.11.2 > Line 203 defines m3u8List, and uses the already defined err. Line 210 is in a nested scope, defines f and err, which shadows the err in the enclosing scope. Change it to: var f *os.File f, err= os.Open(...) and it should work. > > 在 2018年11月28日星期三 UTC+8上午11:02:47,hui zhang写道: >> >> ./main.go:212:4: err is shadowed during return >> >> check code above only line 212 report err >> however line 203 and 212 are almost the same case. but did not report err. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.