Documentation ¶
Index ¶
Constants ¶
View Source
const ( Major = 2 Minor = 0 Patch = 2 Version = "2.0.2" )
WARNING: Auto generated version file. Do not edit this file by hand. WARNING: go get github.com/sabhiram/gover to manage this file. Version: 2.0.2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MagicPacket ¶
type MagicPacket struct {
// contains filtered or unexported fields
}
MagicPacket is constituted of 6 bytes of 0xFF followed by 16-groups of the destination MAC address.
func New ¶
func New(mac string) (*MagicPacket, error)
New returns a magic packet based on a mac address string.
func (*MagicPacket) Marshal ¶
func (mp *MagicPacket) Marshal() ([]byte, error)
Marshal serializes the magic packet structure into a 102 byte slice.
Click to show internal directories.
Click to hide internal directories.