Documentation ¶
Index ¶
- type CSV
- type DecFormatter
- type Go
- type HexFormatter
- func (h *HexFormatter) DuoToUint16(u string) (uint16, error)
- func (h *HexFormatter) DuoToUint16Arr(in []string) []uint16
- func (*HexFormatter) ToUint16(u string) (uint16, error)
- func (h *HexFormatter) ToUint16Arr(in []string) []uint16
- func (*HexFormatter) ToUint8(u string) (uint8, error)
- func (h *HexFormatter) ToUint8Arr(in []string) []uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecFormatter ¶
type DecFormatter struct { }
func (*DecFormatter) ToUint16Arr ¶
func (d *DecFormatter) ToUint16Arr(in []string) []uint16
func (*DecFormatter) ToUint8Arr ¶
func (d *DecFormatter) ToUint8Arr(in []string) []uint8
type HexFormatter ¶
type HexFormatter struct { }
HexFormatter is a formatter that converts uint8/uint16 values in hex formatted string to a uint8/uint16 and vice versa.
func (*HexFormatter) DuoToUint16 ¶
func (h *HexFormatter) DuoToUint16(u string) (uint16, error)
DuoToUint16 converts a string in the format of "0x0A, 0x0B" to uint16 0x0A0B
func (*HexFormatter) DuoToUint16Arr ¶
func (h *HexFormatter) DuoToUint16Arr(in []string) []uint16
in: ["0x01, 0x02", "0x01, 0x03", ...], a uint16 array represented in uint8 duo strings. out: [0x0102, 0x0103, ...], a uint16 array
func (*HexFormatter) ToUint16 ¶
func (*HexFormatter) ToUint16(u string) (uint16, error)
ToUint16 converts a string in the format of "0x0A0B" to uint16 0x0A0B
func (*HexFormatter) ToUint16Arr ¶
func (h *HexFormatter) ToUint16Arr(in []string) []uint16
in: ["0x0102", "0x0103", ...], a uint16 array represented as strings out: [0x0102, 0x0103, ...], a uint16 array
func (*HexFormatter) ToUint8Arr ¶
func (h *HexFormatter) ToUint8Arr(in []string) []uint8
Click to show internal directories.
Click to hide internal directories.