reflect.Value.String (method)
67 uses
reflect (current package)
value.go#L1871: func (v Value) String() string {
value.go#L2707: return makeBytes(v.flag.ro(), []byte(v.String()), t)
value.go#L2717: return makeRunes(v.flag.ro(), []rune(v.String()), t)
database/sql
convert.go#L534: s := rv.String()
database/sql/driver
types.go#L124: i, err := strconv.Atoi(rv.String())
types.go#L287: return rv.String(), nil
encoding/asn1
marshal.go#L566: return makeIA5String(v.String())
marshal.go#L568: return makePrintableString(v.String())
marshal.go#L570: return makeNumericString(v.String())
marshal.go#L572: return makeUTF8String(v.String()), nil
marshal.go#L643: for _, r := range v.String() {
marshal.go#L645: if !utf8.ValidString(v.String()) {
encoding/gob
encode.go#L252: s := v.String()
encoding/json
encode.go#L621: numStr := v.String()
encode.go#L643: e2.string(v.String(), opts.escapeHTML)
encode.go#L647: e.string(v.String(), opts.escapeHTML)
encode.go#L1006: w.s = w.v.String()
encoding/xml
marshal.go#L763: return val.String(), nil, nil
marshal.go#L872: if err := emit(p, []byte(vf.String())); err != nil {
marshal.go#L902: s := vf.String()
fmt
print.go#L757: p.fmtString(f.String(), verb)
github.com/aws/aws-sdk-go/aws/awsutil
prettify.go#L90: buf.WriteString(k.String() + ": ")
string_value.go#L71: buf.WriteString(k.String() + ": ")
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
build.go#L172: func (sv sortedValues) Less(i, j int) bool { return sv[i].String() < sv[j].String() }
build.go#L185: writeString(k.String(), buf)
build.go#L201: writeString(value.String(), buf)
github.com/aws/aws-sdk-go/private/protocol/query/queryutil
queryutil.go#L169: name := mapKey.String()
github.com/aws/aws-sdk-go/private/protocol/rest
build.go#L186: keyStr := strings.TrimSpace(key.String())
github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
build.go#L242: keys[i] = k.String()
github.com/google/go-cmp/cmp
compare.go#L280: s.report(vx.String() == vy.String(), 0)
report_compare.go#L211: formatKey = func(v reflect.Value) string { return v.String() }
report_reflect.go#L174: return opts.formatString("", v.String())
report_slices.go#L86: sx, sy = vx.String(), vy.String()
report_slices.go#L130: s := formatString(v.Index(0).String())
report_slices.go#L219: s := formatString(v.String())
report_slices.go#L237: comment := commentString(fmt.Sprintf("%c|%v|", d, formatASCII(v.String())))
github.com/google/go-cmp/cmp/internal/value
sort.go#L59: return x.String() < y.String()
zero.go#L27: return v.String() == ""
github.com/jackc/pgtype
convert.go#L63: convVal := refVal.String()
convert.go#L122: convVal := refVal.String()
github.com/jackc/pgx/v4
values.go#L273: convVal := val.String()
go.opentelemetry.io/otel/label
kv.go#L138: return String(k, rv.String())
golang.org/x/crypto/ssh
messages.go#L532: s := field.String()
messages.go#L551: out = append(out, f.String()...)
google.golang.org/protobuf/internal/descfmt
stringer.go#L236: isZero = rv.String() == ""
google.golang.org/protobuf/internal/impl
codec_map.go#L299: return keys[i].String() < keys[j].String()
convert.go#L323: return pref.ValueOfString(v.Convert(stringType).String())
gopkg.in/yaml.v2
decode.go#L753: if info, ok := sinfo.FieldsMap[name.String()]; ok {
decode.go#L756: d.terrors = append(d.terrors, fmt.Sprintf("line %d: field %s already set in type %s", ni.line+1, name.String(), out.Type()))
decode.go#L776: d.terrors = append(d.terrors, fmt.Sprintf("line %d: field %s not found in type %s", ni.line+1, name.String(), out.Type()))
encode.go#L235: if _, found := sinfo.FieldsMap[k.String()]; found {
encode.go#L236: panic(fmt.Sprintf("Can't have key %q in inlined map; conflicts with struct field", k.String()))
encode.go#L302: s := in.String()
sorter.go#L39: ar, br := []rune(a.String()), []rune(b.String())
yaml.go#L438: return len(v.String()) == 0
internal/fmtsort
sort.go#L106: a, b := aVal.String(), bVal.String()
text/template
funcs.go#L491: truth = arg1.String() == arg.String()
funcs.go#L551: truth = arg1.String() < arg2.String()
 |
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. |