codeql-go/extractor/trap/util.go

10 строки
121 B
Go

package trap
import (
"strings"
)
func escapeString(s string) string {
return strings.Replace(s, "\"", "\"\"", -1)
}