1 2 3 4 5 6 7 8 9 10 11 12 13
package assets import ( "strings" ) // IsErrNotFound returns true if the error is asset not found. func IsErrNotFound(err error) bool { if err == nil { return false } return strings.Contains(err.Error(), "not found") }