base64url

package
v0.0.0-...-594cd5d Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	// contains filtered or unexported fields
}

A Value holds octets that can be serialized to a base64url-encoded string, without padding.

func NewBigInt

func NewBigInt(x *big.Int) *Value

NewBigInt creates a new Value representing an big.Int.

func NewUint64

func NewUint64(x uint64) *Value

NewUint64 creates a new Value representing a uint64.

func NewValue

func NewValue(data []byte) *Value

NewValue creates a new Value.

func (*Value) BigInt

func (val *Value) BigInt() *big.Int

BigInt returns the value as a big.Int.

func (*Value) Bytes

func (val *Value) Bytes() []byte

Bytes returns the raw, unencoded octets.

func (*Value) MarshalJSON

func (val *Value) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Value) Uint64

func (val *Value) Uint64() uint64

Uint64 returns the value as a uint64.

func (*Value) UnmarshalJSON

func (val *Value) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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