github.com/leg100/ots@v0.0.7-0.20210919080622-034055ced4bd/errors.go (about) 1 package ots 2 3 import ( 4 "errors" 5 6 "gorm.io/gorm" 7 ) 8 9 func IsNotFound(err error) bool { 10 return errors.Is(err, gorm.ErrRecordNotFound) 11 }