jsonb

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package jsonb provides a custom []byte to JSON encoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B

type B []byte

Type B is for (un)marshaling regular []bytes and ed25519 signatures.

func (B) MarshalText

func (t B) MarshalText() ([]byte, error)

func (B) String

func (t B) String() string

func (B) T

func (t B) T() []byte

func (*B) UnmarshalText

func (t *B) UnmarshalText(b []byte) (err error)

type PK

type PK ed25519.PublicKey

Type PK is for (un)marshaling ed25519 public keys.

func (PK) MarshalText

func (t PK) MarshalText() ([]byte, error)

func (PK) String

func (t PK) String() string

func (PK) T

func (t PK) T() ed25519.PublicKey

func (*PK) UnmarshalText

func (t *PK) UnmarshalText(b []byte) (err error)

type SK

Type SK is for (un)marshaling ed25519 private keys.

func (SK) MarshalText

func (t SK) MarshalText() ([]byte, error)

func (SK) String

func (t SK) String() string

func (SK) T

func (t SK) T() ed25519.PrivateKey

func (*SK) UnmarshalText

func (t *SK) UnmarshalText(b []byte) (err error)

Jump to

Keyboard shortcuts

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