package sqliteutil import "github.com/mattn/go-sqlite3" func ErrIsDuplicate(err error) bool { e, ok := err.(sqlite3.Error) return ok && e.Code == 19 }