lib

package
v0.0.0-...-4b09204 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base58

type Base58 []byte

func NewBase58

func NewBase58(str string) (*Base58, error)

func (Base58) Data

func (b Base58) Data() []byte

func (Base58) Length

func (b Base58) Length() int

func (Base58) MarshalJSON

func (b Base58) MarshalJSON() ([]byte, error)

func (Base58) String

func (b Base58) String() string

func (*Base58) UnmarshalJSON

func (b *Base58) UnmarshalJSON(data []byte) error

type Base64Data

type Base64Data []byte

func NewBase64Data

func NewBase64Data(str string) (*Base64Data, error)

func (Base64Data) Data

func (h Base64Data) Data() []byte

func (Base64Data) Length

func (h Base64Data) Length() int

func (Base64Data) MarshalJSON

func (h Base64Data) MarshalJSON() ([]byte, error)

func (Base64Data) String

func (h Base64Data) String() string

func (*Base64Data) UnmarshalJSON

func (h *Base64Data) UnmarshalJSON(data []byte) error

type Bytes

type Bytes []byte

func (Bytes) GetBase64Data

func (b Bytes) GetBase64Data() Base64Data

func (Bytes) GetHexData

func (b Bytes) GetHexData() HexData

type BytesData

type BytesData interface {
	~[]byte
	Data() []byte
	Length() int
	String() string
}

type EmptyEnum

type EmptyEnum struct {
}

func (EmptyEnum) MarshalBCS

func (e EmptyEnum) MarshalBCS() ([]byte, error)

func (*EmptyEnum) UnmarshalBCS

func (e *EmptyEnum) UnmarshalBCS(io.Reader) (int, error)

type HexData

type HexData []byte

func NewHexData

func NewHexData(str string) (*HexData, error)

func (HexData) Data

func (h HexData) Data() []byte

func (HexData) Length

func (h HexData) Length() int

func (HexData) MarshalJSON

func (h HexData) MarshalJSON() ([]byte, error)

func (HexData) ShortString

func (h HexData) ShortString() string

func (HexData) String

func (h HexData) String() string

func (*HexData) UnmarshalJSON

func (h *HexData) UnmarshalJSON(data []byte) error

type TagJson

type TagJson[T TagJsonType] struct {
	Data T
}

func (*TagJson[T]) UnmarshalJSON

func (t *TagJson[T]) UnmarshalJSON(data []byte) error

type TagJsonType

type TagJsonType interface {
	Tag() string
	Content() string
}

Jump to

Keyboard shortcuts

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