GetString is the same as Get, but coerces the value to a string representation as efficiently as possible.
(variable string)
| 109 | // GetString is the same as Get, but coerces the value to a |
| 110 | // string representation as efficiently as possible. |
| 111 | func (r *Replacer) GetString(variable string) (string, bool) { |
| 112 | s, found := r.Get(variable) |
| 113 | return ToString(s), found |
| 114 | } |
| 115 | |
| 116 | // Delete removes a variable with a static value |
| 117 | // that was created using Set. |