Append adds the values to key k, not overwriting what was already stored at that key. k is converted to lowercase before storing in md.
(k string, vals ...string)
| 128 | // |
| 129 | // k is converted to lowercase before storing in md. |
| 130 | func (md MD) Append(k string, vals ...string) { |
| 131 | if len(vals) == 0 { |
| 132 | return |
| 133 | } |
| 134 | k = strings.ToLower(k) |
| 135 | md[k] = append(md[k], vals...) |
| 136 | } |
| 137 | |
| 138 | // Delete removes the values for a given key k which is converted to lowercase |
| 139 | // before removing it from md. |
no outgoing calls