MCPcopy Create free account
hub / github.com/araddon/qlbridge / WriteLiteral

Method WriteLiteral

expr/dialect.go:91–97  ·  view source on GitHub ↗

WriteLiteral writes literal with escapes if needed

(l string)

Source from the content-addressed store, hash-verified

89
90// WriteLiteral writes literal with escapes if needed
91func (w *defaultDialect) WriteLiteral(l string) {
92 if len(l) == 1 && l == "*" {
93 w.WriteByte('*')
94 return
95 }
96 LiteralQuoteEscapeBuf(&w.Buffer, rune(w.LiteralQuote), l)
97}
98
99// WriteIdentity writes identity with escaping if needed
100func (w *defaultDialect) WriteIdentity(i string) {

Callers 1

WriteValueMethod · 0.95

Calls 1

LiteralQuoteEscapeBufFunction · 0.85

Tested by

no test coverage detected