Documentation ¶
Overview ¶
Package public provides functions to determine your systems internet connectivity (IPv4/IPv6) and retrieve the respectively used public IP.
It uses a public service to work independently from your infrastructure. Beware! Online service: https://ip.me
You can easily replace this by changing the global variable DefaultTarget.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Service to resolve IP address against. DefaultTarget string = "https://ip.me" // UserAgent string to use. DefaultUserAgent = "curl/7.84.0" )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.