reflect.Type.String (method)
47 uses
reflect (current package)
iter.go#L116: panic("reflect: " + v.Type().String() + " cannot produce iter.Seq[Value]")
iter.go#L172: panic("reflect: " + v.Type().String() + " cannot produce iter.Seq2[Value, Value]")
type.go#L113: String() string
value.go#L442: panic("reflect: " + op + " using " + xt.String() + " as type " + stringFor(targ))
value.go#L453: panic("reflect: cannot use " + xt.String() + " as type " + elem.String() + " in " + op)
value.go#L2455: return "<" + v.Type().String() + " Value>"
value.go#L2647: panic("reflect: Fields of non-struct type " + t.String())
value.go#L2709: panic(what + ": " + t1.String() + " != " + t2.String())
value.go#L3227: panic("reflect.Value.Convert: value of type " + stringFor(v.typ()) + " cannot be converted to type " + t.String())
value.go#L3364: panic("reflect.Value.Equal: values of type " + v.Type().String() + " are not comparable")
encoding/asn1
asn1.go#L1032: err = StructuralError{"unsupported: " + v.Type().String()}
asn1.go#L1156: return "asn1: Unmarshal recipient value is non-pointer " + e.Type.String()
asn1.go#L1158: return "asn1: Unmarshal recipient value is nil " + e.Type.String()
encoding/binary
binary.go#L282: return errors.New("binary.Read: invalid type " + reflect.TypeOf(data).String())
binary.go#L319: return 0, errors.New("binary.Decode: invalid type " + reflect.TypeOf(data).String())
binary.go#L426: return errors.New("binary.Write: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
binary.go#L455: return 0, errors.New("binary.Encode: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
binary.go#L482: return nil, errors.New("binary.Append: some values are not fixed-sized in type " + reflect.TypeOf(data).String())
encoding/json
decode.go#L137: return "json: cannot unmarshal " + e.Value + " into Go struct field " + e.Struct + "." + e.Field + " of type " + e.Type.String()
decode.go#L139: return "json: cannot unmarshal " + e.Value + " into Go value of type " + e.Type.String()
decode.go#L153: return "json: cannot unmarshal object key " + strconv.Quote(e.Key) + " into unexported field " + e.Field.Name + " of type " + e.Type.String()
decode.go#L168: return "json: Unmarshal(non-pointer " + e.Type.String() + ")"
decode.go#L170: return "json: Unmarshal(nil " + e.Type.String() + ")"
encode.go#L247: return "json: unsupported type: " + e.Type.String()
encode.go#L289: " for type " + e.Type.String() +
encode.go#L790: e.error(fmt.Errorf("json: encoding error for type %q: %q", v.Type().String(), err.Error()))
fmt
print.go#L378: p.buf.writeString(v.Type().String())
print.go#L389: p.buf.writeString(reflect.TypeOf(p.arg).String())
print.go#L393: p.buf.writeString(p.value.Type().String())
print.go#L564: p.buf.writeString(value.Type().String())
print.go#L700: p.fmt.fmtS(reflect.TypeOf(arg).String())
print.go#L808: p.buf.writeString(f.Type().String())
print.go#L837: p.buf.writeString(f.Type().String())
print.go#L861: p.buf.writeString(f.Type().String())
print.go#L887: p.fmtBytes(bytes, verb, t.String())
print.go#L892: p.buf.writeString(f.Type().String())
print.go#L1189: p.buf.writeString(reflect.TypeOf(arg).String())
scan.go#L1021: s.errorString("type not a pointer: " + val.Type().String())
scan.go#L1037: s.errorString("can't scan type: " + val.Type().String())
scan.go#L1051: s.errorString("can't scan type: " + val.Type().String())
github.com/go-faster/errors
adaptor.go#L62: p.buf.WriteString(reflect.TypeOf(f).String())
go.opentelemetry.io/otel/semconv/v1.41.0
error_type.go#L66: s = t.String()
go.opentelemetry.io/otel/trace
auto.go#L502: return t.String()
internal/fmtsort
sort.go#L134: panic("bad type in compare: " + aType.String())
net/http
client.go#L341: if reflect.TypeOf(rt).String() == "*http2.Transport" {
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |