Go: return false or return a custom error ErrValueNotFound?
if errors.Is(err,gorm.ErrRecordNotFound){...}PreviousA crap codebase isn't scary; what's scary is no unit testsNextFinding bugs from source code: 3 examples
Last updated
if errors.Is(err,gorm.ErrRecordNotFound){...}Last updated