package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: May 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
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.
type Client struct {
*client.Client
}
Create a new client which can be used to return the current IP address
Get returns the current IP address from the API
type Response struct {
IP string `json:"ip"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.