geoip

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package geoip maps an IP address to its ISO 3166-1 alpha-2 country code using a compact database embedded in the binary. It is fully offline — no external lookups — so netscope never reveals which IPs you contact to a third party.

Data: DB-IP IP-to-Country Lite (https://db-ip.com), licensed CC BY 4.0. Refresh with scripts/gen-geoip.sh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(ip net.IP) string

Lookup returns the ISO alpha-2 country code for ip, or "" if unknown.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL