Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes returns the byte slice representation of the string without copying. The byte slice must NOT be changed
func BytesWithoutNullChar ¶
BytesWithoutNullChar returns a new byte slice with the null characters removed
Types ¶
type HexOrString ¶
type HexOrString []byte
HexOrString represents a string in either hex or printable ASCII
func (HexOrString) IsPrint ¶
func (h HexOrString) IsPrint() bool
IsPrint indicates whether the value is printable
func (HexOrString) MarshalJSON ¶
func (h HexOrString) MarshalJSON() ([]byte, error)
MarshalJSON marshals to JSON
func (HexOrString) String ¶
func (h HexOrString) String() string
func (*HexOrString) UnmarshalJSON ¶
func (h *HexOrString) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals from JSON
Click to show internal directories.
Click to hide internal directories.