Skip to content

make error easier to check #17

Description

@douyixuan

add method for error interface

IsNone() bool
NotNone() bool

and check error as following

if err.IsNone() {

}
if err.NotNone() {

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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