Skip to content

File already be closed #35

Description

@sshelll

When I try to run the demo in the README.md, I found a little mistake.
If I replace defer lf.Close() with

defer func() {  
    if err := lf.Close(); err != nil {  
        panic(err)
    }  
}  

I will get err msg like this: file already be closed!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions