customtypes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP struct {
	net.IP
}

func (IP) Marshal

func (i IP) Marshal() ([]byte, error)

func (IP) MarshalJSON

func (i IP) MarshalJSON() (j []byte, e error)

func (*IP) MarshalTo

func (i *IP) MarshalTo(data []byte) (int, error)

func (*IP) Size

func (i *IP) Size() int

func (*IP) Unmarshal

func (i *IP) Unmarshal(data []byte) error

func (*IP) UnmarshalJSON

func (i *IP) UnmarshalJSON(data []byte) error

type MAC

type MAC struct {
	net.HardwareAddr
}

func (MAC) Marshal

func (m MAC) Marshal() ([]byte, error)

func (MAC) MarshalJSON

func (m MAC) MarshalJSON() ([]byte, error)

func (*MAC) MarshalTo

func (m *MAC) MarshalTo(data []byte) (int, error)

func (*MAC) Size

func (m *MAC) Size() int

func (*MAC) Unmarshal

func (m *MAC) Unmarshal(data []byte) error

func (*MAC) UnmarshalJSON

func (m *MAC) UnmarshalJSON(data []byte) (e error)

Jump to

Keyboard shortcuts

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