Replace ErrNotFound constant with errors.New for consistent error handling

This commit is contained in:
2026-04-11 17:21:39 +05:00
parent f2657471c4
commit 9e0c065ecc
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -2,13 +2,14 @@ package geoip2
import (
"context"
"errors"
"fmt"
"net/netip"
"strings"
)
// ErrNotFound is returned when the database does not contain the IP address.
const ErrNotFound = "not found"
var ErrNotFound = errors.New("not found")
// Info is a structure that contains information about the IP address.
type Info struct {