MarshalJSON implements the json.Marshaler interface for Secret.
()
| 43 | |
| 44 | // MarshalJSON implements the json.Marshaler interface for Secret. |
| 45 | func (s Secret) MarshalJSON() ([]byte, error) { |
| 46 | if len(s) == 0 { |
| 47 | return json.Marshal("") |
| 48 | } |
| 49 | return json.Marshal(secretToken) |
| 50 | } |
| 51 | |
| 52 | type Header map[string][]Secret |
| 53 |
nothing calls this directly
no outgoing calls
no test coverage detected