Os.close undefined

Close() is defined on *os.File, not the package.

fL.Close() is what you want in this case.

Please don’t forget to check the returned errors.