logic/esc_seq.go

15 lines
180 B
Go
Raw Permalink Normal View History

2023-01-15 20:53:51 +01:00
package logic
import "strings"
var EscSeqReplacer = strings.NewReplacer(
`\\`, `\`,
`\n`, "\n",
`\t`, "\t",
`\f`, "\f",
`\r`, "\r",
`\v`, "\v",
`\b`, "\b",
`\a`, "\a",
)