MCPcopy Create free account
hub / github.com/SermoDigital/jose / Base64

Method Base64

header.go:46–48  ·  view source on GitHub ↗

Base64 implements the Encoder interface.

()

Source from the content-addressed store, hash-verified

44
45// Base64 implements the Encoder interface.
46func (h Header) Base64() ([]byte, error) {
47 return h.MarshalJSON()
48}
49
50// UnmarshalJSON implements json.Unmarshaler for Header.
51func (h *Header) UnmarshalJSON(b []byte) error {

Callers

nothing calls this directly

Calls 1

MarshalJSONMethod · 0.95

Tested by

no test coverage detected