Documentation ¶
Overview ¶
Package pciaddr parses and validates PCI addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPCIAddress = errors.New("bad PCI address")
ErrPCIAddress indicates the input PCI address is invalid.
Functions ¶
This section is empty.
Types ¶
type PCIAddress ¶
PCIAddress represents a PCI address.
func MustParse ¶
func MustParse(input string) (a PCIAddress)
MustParse parses a PCI string. Panics on failure.
func (PCIAddress) MarshalText ¶
func (a PCIAddress) MarshalText() (text []byte, e error)
MarshalText implements encoding.TextMarshaler interface.
func (PCIAddress) String ¶
func (a PCIAddress) String() string
String returns the PCI address in 0000:00:01.0 format.
func (*PCIAddress) UnmarshalText ¶
func (a *PCIAddress) UnmarshalText(text []byte) (e error)
UnmarshalText implements encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.