Sign in
fuchsia
/
fuchsia
/
refs/heads/sandbox/markdittmer/zstd-seekable-demand-paging
/
.
/
garnet
/
go
/
src
/
fidl
/
compiler
/
backend
/
common
/
strings.go
blob: 6135b8eef5ff22187422b7b1b42856aaeaa6fd71 [
file
] [
log
] [
blame
]
package common
import (
"fmt"
"strings"
)
func SingleQuote(s string) string {
s = strings.ReplaceAll(s, `\`, `\\`)
s = strings.ReplaceAll(s, `'`, `\'`)
return fmt.Sprintf(`'%s'`, s)
}