Skip to content

make error easier to check #17

@douyixuan

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions