Skip to content

File already be closed #35

@sshelll

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions