package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: May 14, 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.
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.