Delete removes a variable with a static value that was created using Set.
(variable string)
| 116 | // Delete removes a variable with a static value |
| 117 | // that was created using Set. |
| 118 | func (r *Replacer) Delete(variable string) { |
| 119 | r.mapMutex.Lock() |
| 120 | delete(r.static, variable) |
| 121 | r.mapMutex.Unlock() |
| 122 | } |
| 123 | |
| 124 | // DeleteByPrefix removes all static variables with |
| 125 | // keys starting with the given prefix |
no outgoing calls