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

Method Set

header.go:75–77  ·  view source on GitHub ↗

Set sets Protected[key] = val. It'll overwrite without warning.

(key string, val interface{})

Source from the content-addressed store, hash-verified

73
74// Set sets Protected[key] = val. It'll overwrite without warning.
75func (p Protected) Set(key string, val interface{}) {
76 p[key] = val
77}
78
79// Del removes the value that corresponds with key from the Protected Header.
80func (p Protected) Del(key string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected