According to the docs, when we are using QueryRow(), Scan() will return sql.ErrNoRows if no rows are found.
QueryRow()
Scan()
sql.ErrNoRows
Ex: Below returns