package
Version:
v0.0.0-...-a100065
Opens a new window with list of versions in this module.
Published: Apr 29, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type IPInfo struct {
Ip string `json:"ip"`
Loc string `json:"loc"`
}
Define a struct to represent the response from the IP lookup API.
type MACInfo struct {
MacPrefix string `json:"macPrefix"`
Company string `json:"company"`
Address string `json:"address"`
Country string `json:"country"`
}
Define a struct to represent the JSON response from the MAC lookup API.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.