package
Version:
v1.3.5
Opens a new window with list of versions in this module.
Published: Jan 26, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Ipify API Client
This package provides a client for the Ipify API, which is used to determine the public IP address of a client.
References:
Documentation
¶
ipify implements a generic API client which parses a JSON response. Mostly used
to test the client package.
Create a new client which can be used to return the current IP address
Get returns the current IP address from the API
GetWithContext returns the current IP address from the API using the provided context
type Response struct {
IP string `json:"ip"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.