escape sequence replacer implemented
This commit is contained in:
parent
6bfb7dce34
commit
8ed3e407ee
14
esc_seq.go
Normal file
14
esc_seq.go
Normal 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",
|
||||
)
|
Loading…
Reference in New Issue
Block a user