As you are seeing, Go does not allow you to do a naked return when one of
the named return values is being shadowed by another variable. If you take
a look at the "Return statements" section in the Go Language Specification
[1], it mentions this restriction:
> Implementation restriction: A compile
On Tue, Nov 27, 2018 at 8:03 PM hui zhang 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(...)
an