ethernet_types

package
v0.9.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 32

Documentation

Overview

Package ethernet_types contains generated bindings for API file ethernet_types.api.

Contents: - 1 alias

Index

Constants

View Source
const (
	APIFile    = "ethernet_types"
	APIVersion = "1.0.0"
	VersionCrc = 0xf24103d6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MacAddress

type MacAddress [6]uint8

MacAddress defines alias 'mac_address'.

func NewMacAddress added in v0.8.0

func NewMacAddress(mac net.HardwareAddr) MacAddress

func ParseMacAddress

func ParseMacAddress(s string) (MacAddress, error)

func (*MacAddress) MarshalText

func (x *MacAddress) MarshalText() ([]byte, error)

func (MacAddress) String

func (x MacAddress) String() string

func (MacAddress) ToMAC

func (x MacAddress) ToMAC() net.HardwareAddr

func (*MacAddress) UnmarshalText

func (x *MacAddress) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL