diff options
Diffstat (limited to 'utils/quote_str.go')
-rw-r--r-- | utils/quote_str.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/quote_str.go b/utils/quote_str.go new file mode 100644 index 0000000..acff5a2 --- /dev/null +++ b/utils/quote_str.go @@ -0,0 +1,7 @@ +package utils + +import "strings" + +func Quote(s string) string { + return strings.Replace(s, `"`, `\"`, -1) +} |