strings.Builder.WriteString (method)

213 uses

	strings (current package)
		builder.go#L121: func (b *Builder) WriteString(s string) (int, error) {
		strings.go#L435: 	b.WriteString(elems[0])
		strings.go#L437: 		b.WriteString(sep)
		strings.go#L438: 		b.WriteString(s)
		strings.go#L482: 		b.WriteString(s[:i])
		strings.go#L537: 	b.WriteString(s)
		strings.go#L540: 			b.WriteString(b.String())
		strings.go#L542: 			b.WriteString(b.String()[:n-b.Len()])
		strings.go#L644: 			b.WriteString(s[:i])
		strings.go#L669: 				b.WriteString(replacement)
		strings.go#L674: 		b.WriteString(s[i : i+wid])
		strings.go#L950: 		b.WriteString(s[start:j])
		strings.go#L951: 		b.WriteString(new)
		strings.go#L954: 	b.WriteString(s[start:])

	github.com/evanw/esbuild/internal/config
		config.go#L278: 		sb.WriteString(part.Data)
		config.go#L281: 			sb.WriteString("[name]")
		config.go#L283: 			sb.WriteString("[hash]")

	github.com/evanw/esbuild/internal/css_lexer
		css_lexer.go#L507: 	sb.WriteString(raw)
		css_lexer.go#L787: 	sb.WriteString(inner[:i])

	github.com/evanw/esbuild/internal/css_printer
		css_printer.go#L378: 	p.sb.WriteString(text)
		css_printer.go#L447: 		p.sb.WriteString(text)
		css_printer.go#L569: 		p.sb.WriteString("  ")

	github.com/evanw/esbuild/internal/logger
		logger.go#L678: 			sb.WriteString("\n")
		logger.go#L722: 				sb.WriteString(fmt.Sprintf("%s%s%s%s%s%s%s%s%s%s%s\n",
		logger.go#L743: 				sb.WriteString(fmt.Sprintf("%s%s...and %d more output file%s...%s\n", margin, colors.Dim, length-maxLength, plural, colors.Default))
		logger.go#L754: 		sb.WriteString(fmt.Sprintf("\n%s%sDone in %dms%s\n\n",

	github.com/evanw/esbuild/internal/resolver
		resolver.go#L1073: 			sb.WriteString(".*")

	github.com/evanw/esbuild/pkg/api
		serve_other.go#L106: 			sb.WriteString(fmt.Sprintf("%d out of %d errors shown\n", limit, len(errors)))
		serve_other.go#L109: 		sb.WriteString(msg.String(stderrOptions, terminalOptions))
		serve_other.go#L358: 	html.WriteString(``)
		serve_other.go#L359: 	html.WriteString(``)
		serve_other.go#L360: 	html.WriteString(`Directory: `)
		<a href="../src/github.com/evanw/esbuild/pkg/api/serve_other.go.html#line-361" class="path-duplicate">serve_other.go</a><a href="../src/github.com/evanw/esbuild/pkg/api/serve_other.go.html#line-361">#L361</a>: 	html.<b>WriteString</b>(escapeForHTML(queryDir))
		<a href="../src/github.com/evanw/esbuild/pkg/api/serve_other.go.html#line-362" class="path-duplicate">serve_other.go</a><a href="../src/github.com/evanw/esbuild/pkg/api/serve_other.go.html#line-362">#L362</a>: 	html.<b>WriteString</b>(``)
		serve_other.go#L363: 	html.WriteString(`

Directory: `) serve_other.go#L364: html.WriteString(escapeForHTML(queryDir)) serve_other.go#L365: html.WriteString(`

`) serve_other.go#L366: html.WriteString(``) github.com/go-git/go-git/v5/plumbing/format/diff unified_encoder.go#L64: sb.WriteString(message) unified_encoder.go#L136: sb.WriteString(e.color[Meta]) unified_encoder.go#L137: sb.WriteString(lines[0]) unified_encoder.go#L140: sb.WriteString(line) unified_encoder.go#L142: sb.WriteString(e.color.Reset(Meta)) unified_encoder.go#L305: sb.WriteString(color[Frag]) unified_encoder.go#L306: sb.WriteString("@@ -") unified_encoder.go#L309: sb.WriteString(strconv.Itoa(h.fromLine)) unified_encoder.go#L311: sb.WriteString(strconv.Itoa(h.fromLine)) unified_encoder.go#L313: sb.WriteString(strconv.Itoa(h.fromCount)) unified_encoder.go#L316: sb.WriteString(" +") unified_encoder.go#L319: sb.WriteString(strconv.Itoa(h.toLine)) unified_encoder.go#L321: sb.WriteString(strconv.Itoa(h.toLine)) unified_encoder.go#L323: sb.WriteString(strconv.Itoa(h.toCount)) unified_encoder.go#L326: sb.WriteString(" @@") unified_encoder.go#L327: sb.WriteString(color.Reset(Frag)) unified_encoder.go#L331: sb.WriteString(color[Func]) unified_encoder.go#L332: sb.WriteString(h.ctxPrefix) unified_encoder.go#L333: sb.WriteString(color.Reset(Func)) unified_encoder.go#L367: sb.WriteString(color[colorKey]) unified_encoder.go#L370: sb.WriteString(strings.TrimSuffix(o.text, "\n")) unified_encoder.go#L372: sb.WriteString(o.text + "\n\\ No newline at end of file") unified_encoder.go#L374: sb.WriteString(color.Reset(colorKey)) github.com/jackc/pgx/v4 conn.go#L741: sb.WriteString(sql) go.opentelemetry.io/otel/api/correlation correlation_context_propagator.go#L53: headerValueBuilder.WriteString(url.QueryEscape(strings.TrimSpace((string)(kv.Key)))) correlation_context_propagator.go#L55: headerValueBuilder.WriteString(url.QueryEscape(strings.TrimSpace(kv.Value.Emit()))) correlation_context_propagator.go#L96: trimmedValueWithProps.WriteString(trimmedValue) correlation_context_propagator.go#L99: trimmedValueWithProps.WriteString(prop) golang.org/x/mod/zip zip.go#L140: buf.WriteString(sep) zip.go#L141: buf.WriteString(e.Error()) golang.org/x/pkgsite/internal/database database.go#L409: b.WriteString(", ") database.go#L412: b.WriteString(" " + conflictAction) golang.org/x/pkgsite/internal/middleware requestlog.go#L32: msg.WriteString(strconv.Itoa(entry.HTTPRequest.Status) + " ") requestlog.go#L34: msg.WriteString(entry.HTTPRequest.Request.URL.Path + " ") requestlog.go#L37: msg.WriteString(fmt.Sprint(entry.Payload)) golang.org/x/pkgsite/internal/queue queue.go#L199: b.WriteString("__") queue.go#L201: b.WriteString("_-") queue.go#L203: b.WriteString("_v") queue.go#L205: b.WriteString("_o") golang.org/x/pkgsite/internal/testing/dbtest dbtest.go#L57: sb.WriteString(sep + err.Error()) golang.org/x/pkgsite/internal/testing/htmlcheck htmlcheck.go#L163: b.WriteString(n.Data) html/template css.go#L175: b.WriteString(s[written:i]) css.go#L176: b.WriteString(repl) css.go#L185: b.WriteString(s[written:]) html.go#L152: b.WriteString(s[written:i]) html.go#L153: b.WriteString(repl) html.go#L170: b.WriteString(s[written:]) js.go#L209: buf.WriteString(repl) js.go#L276: b.WriteString(s[written:i]) js.go#L277: b.WriteString(repl) js.go#L283: b.WriteString(s[written:]) mime encodedword.go#L161: buf.WriteString("=?") encodedword.go#L162: buf.WriteString(charset) encodedword.go#L170: buf.WriteString("?=") encodedword.go#L249: buf.WriteString(header[:i]) encodedword.go#L288: buf.WriteString(header[:start+2]) encodedword.go#L296: buf.WriteString(header[:start]) encodedword.go#L308: buf.WriteString(header) mediatype.go#L26: b.WriteString(strings.ToLower(t)) mediatype.go#L32: b.WriteString(strings.ToLower(major)) mediatype.go#L34: b.WriteString(strings.ToLower(sub)) mediatype.go#L50: b.WriteString(strings.ToLower(attribute)) mediatype.go#L60: b.WriteString("utf-8''") mediatype.go#L71: b.WriteString(value[offset:index]) mediatype.go#L79: b.WriteString(value[offset:]) mediatype.go#L84: b.WriteString(value) mediatype.go#L93: b.WriteString(value[offset:index]) mediatype.go#L98: b.WriteString(value[offset:]) mediatype.go#L214: buf.WriteString(v) mediatype.go#L225: buf.WriteString(decv) mediatype.go#L229: buf.WriteString(decv) net/http cookie.go#L180: b.WriteString(c.Name) cookie.go#L182: b.WriteString(sanitizeCookieValue(c.Value)) cookie.go#L185: b.WriteString("; Path=") cookie.go#L186: b.WriteString(sanitizeCookiePath(c.Path)) cookie.go#L198: b.WriteString("; Domain=") cookie.go#L199: b.WriteString(d) cookie.go#L206: b.WriteString("; Expires=") cookie.go#L210: b.WriteString("; Max-Age=") cookie.go#L213: b.WriteString("; Max-Age=0") cookie.go#L216: b.WriteString("; HttpOnly") cookie.go#L219: b.WriteString("; Secure") cookie.go#L225: b.WriteString("; SameSite=None") cookie.go#L227: b.WriteString("; SameSite=Lax") cookie.go#L229: b.WriteString("; SameSite=Strict") net/http/httptest server.go#L256: buf.WriteString("httptest.Server blocked in Close after 5 seconds, waiting for connections:\n") net/url url.go#L814: buf.WriteString(u.Scheme) url.go#L818: buf.WriteString(u.Opaque) url.go#L822: buf.WriteString("//") url.go#L825: buf.WriteString(ui.String()) url.go#L829: buf.WriteString(escape(h, encodeHost)) url.go#L844: buf.WriteString("./") url.go#L847: buf.WriteString(path) url.go#L851: buf.WriteString(u.RawQuery) url.go#L855: buf.WriteString(u.EscapedFragment()) url.go#L980: buf.WriteString(keyEscaped) url.go#L982: buf.WriteString(QueryEscape(v)) url.go#L1033: dst.WriteString(str[:index]) url.go#L1039: dst.WriteString(elem) os/exec exec.go#L209: b.WriteString(c.Path) exec.go#L212: b.WriteString(a) regexp/syntax prog.go#L289: b.WriteString(s) prog.go#L298: b.WriteString(" "[len(pc):]) regexp.go#L119: b.WriteString("") regexp.go#L121: b.WriteString(`[^\x00-\x{10FFFF}]`) regexp.go#L123: b.WriteString(`(?:)`) regexp.go#L126: b.WriteString(`(?i:`) regexp.go#L132: b.WriteString(`)`) regexp.go#L136: b.WriteString(`[invalid char class]`) regexp.go#L141: b.WriteString(`^\x00-\x{10FFFF}`) regexp.go#L166: b.WriteString(`(?-s:.)`) regexp.go#L168: b.WriteString(`(?s:.)`) regexp.go#L170: b.WriteString(`(?m:^)`) regexp.go#L172: b.WriteString(`(?m:$)`) regexp.go#L174: b.WriteString(`\A`) regexp.go#L177: b.WriteString(`(?-m:$)`) regexp.go#L179: b.WriteString(`\z`) regexp.go#L182: b.WriteString(`\b`) regexp.go#L184: b.WriteString(`\B`) regexp.go#L187: b.WriteString(`(?P<`) regexp.go#L188: b.WriteString(re.Name) regexp.go#L199: b.WriteString(`(?:`) regexp.go#L201: b.WriteString(`)`) regexp.go#L214: b.WriteString(strconv.Itoa(re.Min)) regexp.go#L218: b.WriteString(strconv.Itoa(re.Max)) regexp.go#L229: b.WriteString(`(?:`) regexp.go#L231: b.WriteString(`)`) regexp.go#L265: b.WriteString(`\a`) regexp.go#L267: b.WriteString(`\f`) regexp.go#L269: b.WriteString(`\n`) regexp.go#L271: b.WriteString(`\r`) regexp.go#L273: b.WriteString(`\t`) regexp.go#L275: b.WriteString(`\v`) regexp.go#L278: b.WriteString(`\x`) regexp.go#L283: b.WriteString(s) regexp.go#L286: b.WriteString(`\x{`) regexp.go#L287: b.WriteString(strconv.FormatInt(int64(r), 16)) regexp.go#L288: b.WriteString(`}`) testing testing.go#L549: buf.WriteString(" ") testing.go#L558: buf.WriteString("\n ") testing.go#L560: buf.WriteString(line) text/template exec.go#L238: b.WriteString("; defined templates are: ") exec.go#L240: b.WriteString(", ") text/template/parse node.go#L142: sb.WriteString(t.String()) node.go#L172: sb.WriteString("{{") node.go#L173: sb.WriteString(c.Text) node.go#L174: sb.WriteString("}}") node.go#L214: sb.WriteString(", ") node.go#L218: sb.WriteString(" := ") node.go#L222: sb.WriteString(" | ") node.go#L274: sb.WriteString("{{") node.go#L276: sb.WriteString("}}") node.go#L374: sb.WriteString(i.String()) node.go#L409: sb.WriteString(id) node.go#L444: sb.WriteString(d.String()) node.go#L478: sb.WriteString(n.String()) node.go#L512: sb.WriteString(id) node.go#L567: sb.WriteString(field) node.go#L599: sb.WriteString(b.String()) node.go#L736: sb.WriteString(n.String()) node.go#L767: sb.WriteString(s.String()) node.go#L795: sb.WriteString(e.String()) node.go#L827: sb.WriteString(e.String()) node.go#L867: sb.WriteString("{{") node.go#L868: sb.WriteString(name) node.go#L871: sb.WriteString("}}") node.go#L874: sb.WriteString("{{else}}") node.go#L877: sb.WriteString("{{end}}") node.go#L957: sb.WriteString("{{template ") node.go#L958: sb.WriteString(strconv.Quote(t.Name)) node.go#L963: sb.WriteString("}}")