Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeMACAddress ¶
ChangeMACAddress changes the MAC address of the specified adapter
func GetOriginalMAC ¶
GetOriginalMAC retrieves the current MAC address of the specified adapter
func RestartAdapter ¶
RestartAdapter disables and re-enables the network adapter
func RestoreOriginalMAC ¶
RestoreOriginalMAC restores the original MAC address of the specified adapter
Types ¶
type AdapterInfo ¶
type AdapterInfo struct { Name string `json:"Name"` Description string `json:"InterfaceDescription"` MacAddress string `json:"MacAddress"` }
func ListAdapters ¶
func ListAdapters() ([]AdapterInfo, error)
ListAdapters returns a list of all network adapters
Click to show internal directories.
Click to hide internal directories.