Documentation ¶
Overview ¶
Package base64 provides a byte slice type that marshals into json as a raw (no padding) base64url value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value []byte
Value is a base64url encoded json object,
func NewValue ¶
NewValue returns a pointer to a Value, cast from the given byte slice. This is a convenience function, handling the address creation that a direct cast would not allow.
func NewValueFromString ¶ added in v0.15.0
NewValueFromString returns a Value containing the decoded data in encoded.
func (*Value) MarshalJSON ¶
MarshalJSON returns the ba64url encoding of bv for JSON representation.
func (*Value) UnmarshalJSON ¶
UnmarshalJSON sets bv to the bytes represented in the base64url encoding b.
Click to show internal directories.
Click to hide internal directories.