(s string)
| 511 | ) |
| 512 | |
| 513 | func unreplace(s string) string { |
| 514 | // Replacer causes allocations. Replace only when necessary. |
| 515 | if strings.IndexByte(s, byte('\\')) >= 0 { |
| 516 | return lvalReplacer.Replace(s) |
| 517 | } |
| 518 | return s |
| 519 | } |
| 520 | |
| 521 | func yoloString(b []byte) string { |
| 522 | return unsafe.String(unsafe.SliceData(b), len(b)) |