escape sequence replacer implemented

This commit is contained in:
milarin 2023-01-15 20:53:51 +01:00
parent 6bfb7dce34
commit 8ed3e407ee

14
esc_seq.go Normal file
View File

@ -0,0 +1,14 @@
package logic
import "strings"
var EscSeqReplacer = strings.NewReplacer(
`\\`, `\`,
`\n`, "\n",
`\t`, "\t",
`\f`, "\f",
`\r`, "\r",
`\v`, "\v",
`\b`, "\b",
`\a`, "\a",
)