bytes.Buffer.String (method)
141 uses
bytes (current package)
buffer.go#L60: func (b *Buffer) String() string {
cloud.google.com/go/logging
logging.go#L705: return buf.String()
cloud.google.com/go/storage
storage.go#L1364: q.fieldSelection = b.String()
encoding/json
encode.go#L1311: field.nameEscHTML = nameEscBuf.String()
github.com/andybalholm/cascadia
selector.go#L472: return b.String()
selector.go#L484: return b.String()
github.com/aws/aws-sdk-go/aws/awsutil
prettify.go#L15: return buf.String()
string_value.go#L14: return buf.String()
github.com/aws/aws-sdk-go/aws/ec2metadata
service.go#L194: data.Token = b.String()
service.go#L219: data.Content = b.String()
service.go#L237: r.Error = awserr.NewRequestFailure(awserr.New("EC2MetadataError", "failed to make EC2Metadata request", errors.New(b.String())),
github.com/aws/aws-sdk-go/aws/request
validation.go#L88: return w.String()
github.com/aws/aws-sdk-go/internal/ini
number_helper.go#L151: return buf.String()
parse_stack.go#L59: return buf.String()
github.com/aws/aws-sdk-go/private/protocol/rest
build.go#L264: return buf.String()
github.com/go-git/go-git/v5
blame.go#L273: return buf.String()
repository.go#L705: return b.String(), nil
status.go#L54: return buf.String()
submodule.go#L313: return buf.String()
worktree_commit.go#L126: return b.String(), nil
github.com/go-git/go-git/v5/plumbing/format/index
index.go#L119: return buf.String()
index.go#L163: return buf.String()
github.com/go-git/go-git/v5/plumbing/object
change.go#L144: return buffer.String()
commit.go#L241: c.Message = msgbuf.String()
file.go#L43: return buf.String(), nil
patch.go#L149: return buf.String()
github.com/go-git/go-git/v5/plumbing/transport
common.go#L157: return buf.String()
github.com/go-git/go-git/v5/utils/diff
diff.go#L49: return text.String()
diff.go#L60: return text.String()
github.com/go-git/go-git/v5/utils/merkletrie/internal/frame
frame.go#L60: return buf.String()
github.com/go-git/go-git/v5/utils/merkletrie/noder
path.go#L29: return buf.String()
github.com/google/licensecheck/internal/match
resyntax.go#L93: return strings.Trim(b.String(), "\n")
github.com/google/safehtml
html.go#L55: return HTML{b.String()}
style.go#L244: return Style{buf.String()}
style.go#L303: return b.String()
urlset.go#L78: return URLSet{buffer.String()}
github.com/google/safehtml/internal/safehtmlutil
safehtmlutil.go#L122: return b.String()
github.com/google/safehtml/template
template.go#L141: return uncheckedconversions.HTMLFromStringKnownToSatisfyTypeContract(buf.String()), nil
template.go#L189: return uncheckedconversions.HTMLFromStringKnownToSatisfyTypeContract(buf.String()), nil
github.com/googleapis/gax-go/v2
header.go#L52: return buf.String()[1:]
github.com/jackc/pgtype
array.go#L219: return nil, fmt.Errorf("unexpected trailing data: %v", buf.String())
array.go#L265: return s.String(), false, nil
array.go#L293: return s.String(), true, nil
array.go#L312: n, err := strconv.ParseInt(s.String(), 10, 32)
hstore.go#L308: keys = append(keys, buf.String())
hstore.go#L352: values = append(values, Text{String: buf.String(), Status: Present})
range.go#L108: return nil, fmt.Errorf("unexpected trailing data: %v", buf.String())
range.go#L140: return s.String(), nil
range.go#L169: return s.String(), nil
github.com/jackc/pgx/v4
copy_from.go#L100: quotedColumnNames := cbuf.String()
tx.go#L58: return buf.String()
github.com/jackc/pgx/v4/internal/sanitize
sanitize.go#L66: return buf.String(), nil
github.com/jmespath/go-jmespath
lexer.go#L285: value := lexer.buf.String()
github.com/kevinburke/ssh_config
config.go#L287: return marshal(c).String()
config.go#L363: r, err := regexp.Compile(buf.String())
config.go#L435: return buf.String()
github.com/lann/ps
map.go#L310: return buf.String()
github.com/Masterminds/squirrel
case.go#L42: return b.String(), b.args, b.err
delete.go#L82: sqlStr, err = d.PlaceholderFormat.ReplacePlaceholders(sql.String())
expr.go#L81: return buf.String(), append(args, ap...), err
insert.go#L113: sqlStr, err = d.PlaceholderFormat.ReplacePlaceholders(sql.String())
placeholder.go#L113: return buf.String(), nil
select.go#L163: sqlStr = sql.String()
squirrel.go#L182: return buf.String()
update.go#L130: sqlStr, err = d.PlaceholderFormat.ReplacePlaceholders(sql.String())
github.com/microcosm-cc/bluemonday
sanitize.go#L59: return p.sanitize(strings.NewReader(s)).String()
github.com/mitchellh/go-homedir
homedir.go#L108: result := strings.TrimSpace(stdout.String())
homedir.go#L122: if passwd := strings.TrimSpace(stdout.String()); passwd != "" {
homedir.go#L140: result := strings.TrimSpace(stdout.String())
github.com/prometheus/client_golang/prometheus
registry.go#L226: return buf.String()
github.com/prometheus/common/expfmt
text_parse.go#L176: keyword := p.currentToken.String()
text_parse.go#L284: p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())}
text_parse.go#L318: if !model.LabelValue(p.currentToken.String()).IsValid() {
text_parse.go#L319: p.parseError(fmt.Sprintf("invalid label value %q", p.currentToken.String()))
text_parse.go#L322: p.currentLabelPair.Value = proto.String(p.currentToken.String())
text_parse.go#L395: value, err := parseFloat(p.currentToken.String())
text_parse.go#L398: p.parseError(fmt.Sprintf("expected float as value, got %q", p.currentToken.String()))
text_parse.go#L464: timestamp, err := strconv.ParseInt(p.currentToken.String(), 10, 64)
text_parse.go#L467: p.parseError(fmt.Sprintf("expected integer as timestamp, got %q", p.currentToken.String()))
text_parse.go#L475: p.parseError(fmt.Sprintf("spurious string after timestamp: %q", p.currentToken.String()))
text_parse.go#L492: p.currentMF.Help = proto.String(p.currentToken.String())
text_parse.go#L507: metricType, ok := dto.MetricType_value[strings.ToUpper(p.currentToken.String())]
text_parse.go#L509: p.parseError(fmt.Sprintf("unknown metric type %q", p.currentToken.String()))
text_parse.go#L655: p.parseError(fmt.Sprintf("label value %q contains unescaped new-line", p.currentToken.String()))
text_parse.go#L670: name := p.currentToken.String()
github.com/russross/blackfriday/v2
html.go#L569: attrs = append(attrs, hrefBuf.String())
html.go#L580: attrs = append(attrs, titleBuff.String())
github.com/sergi/go-diff/diffmatchpatch
diff.go#L1179: return buff.String()
diff.go#L1202: return buff.String()
diff.go#L1215: return text.String()
diff.go#L1227: return text.String()
diff.go#L1277: delta := text.String()
patch.go#L70: return unescaper.Replace(text.String())
patch.go#L474: return text.String()
github.com/yuin/goldmark/parser
attribute.go#L280: f, err := strconv.ParseFloat(buf.String(), 10)
go.opencensus.io/stats/view
view.go#L188: return buffer.String()
go.opencensus.io/tag
map.go#L67: return buffer.String()
go.opentelemetry.io/otel/label
encoder.go#L126: return buf.String()
go/ast
commentmap.go#L331: return buf.String()
scope.go#L61: return buf.String()
go/doc
comment.go#L43: htmlQuoteReplacer.WriteString(w, buf.String())
golang.org/x/mod/zip
zip.go#L832: return buf.String()
golang.org/x/net/html
escape.go#L243: return buf.String()
token.go#L96: return buf.String()
golang.org/x/net/http2
frame.go#L181: return buf.String()
frame.go#L1613: return buf.String()
golang.org/x/net/http2/hpack
hpack.go#L500: s = buf.String()
huffman.go#L39: return buf.String(), nil
golang.org/x/net/trace
events.go#L368: return buf.String()
histogram.go#L328: return template.HTML(buf.String())
golang.org/x/oauth2
oauth2.go#L176: return buf.String()
golang.org/x/pkgsite/internal/dcensus
debug.go#L56: return buf.String()
golang.org/x/pkgsite/internal/frontend
goldmark.go#L301: Text: buffer.String(),
overview.go#L106: s := p.SanitizeReader(r).String()
styleguide.go#L140: Content: uncheckedconversions.HTMLFromStringKnownToSatisfyTypeContract(buf.String()),
golang.org/x/pkgsite/internal/godoc/dochtml
dochtml.go#L333: return uncheckedconversions.HTMLFromStringKnownToSatisfyTypeContract(buf.B.String()), nil
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L197: return buf.String(), nil
synopsis.go#L161: s := buf.String()
golang.org/x/xerrors
adaptor.go#L119: fmt.Fprintf(s, string(format), p.buf.String())
google.golang.org/api/googleapi
googleapi.go#L106: fmt.Fprintf(&buf, "\n%s", detailBuf.String())
googleapi.go#L111: return strings.TrimSpace(buf.String())
googleapi.go#L115: return buf.String()
googleapi.go#L121: return buf.String()
google.golang.org/api/internal/third_party/uritemplates
uritemplates.go#L62: return w.escaped.String()
uritemplates.go#L67: return w.unescaped.String()
google.golang.org/grpc
trace.go#L86: return line.String()
google.golang.org/grpc/internal/transport
http_util.go#L493: return buf.String()
http_util.go#L527: return buf.String()
gopkg.in/warnings.v0
warnings.go#L112: return b.String()
html/template
html.go#L223: return b.String()
url.go#L83: return b.String()
url.go#L156: s = b.String()
url.go#L172: return b.String()
mime/multipart
formdata.go#L78: form.Value[name] = append(form.Value[name], b.String())
net/http
h2_bundle.go#L1421: return buf.String()
h2_bundle.go#L2856: return buf.String()
runtime/pprof
pprof.go#L417: return buf.String()
text/template
funcs.go#L638: return b.String()
funcs.go#L721: return b.String()
vendor/golang.org/x/net/http2/hpack
hpack.go#L500: s = buf.String()
huffman.go#L39: return buf.String(), nil
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |