Skip to content

hjpcs/error_handling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 

Repository files navigation

desc

now can't write the right code, below code is just example.

dao

return errors.Wrapf(errors.NotFound, fmt.Sprintf("sql: %s error: %v", sql, err))

biz

if errors.Is(err, errors.NotFound) {}
if errors.Reason(err, xxxx) == xxxx {}

Releases

No releases published

Packages

No packages published