reflect.Type.String (method)
47 uses
reflect (current package)
type.go#L97: String() string
value.go#L406: panic("reflect: " + op + " using " + xt.String() + " as type " + targ.String())
value.go#L417: panic("reflect: cannot use " + xt.String() + " as type " + elem.String() + " in " + op)
value.go#L1880: return "<" + v.Type().String() + " Value>"
value.go#L2002: panic(what + ": " + t1.String() + " != " + t2.String())
value.go#L2463: panic("reflect.Value.Convert: value of type " + v.typ.String() + " cannot be converted to type " + t.String())
encoding/asn1
asn1.go#L987: err = StructuralError{"unsupported: " + v.Type().String()}
asn1.go#L1105: return "asn1: Unmarshal recipient value is non-pointer " + e.Type.String()
asn1.go#L1107: return "asn1: Unmarshal recipient value is nil " + e.Type.String()
encoding/binary
binary.go#L253: return errors.New("binary.Read: invalid type " + reflect.TypeOf(data).String())
binary.go#L383: return errors.New("binary.Write: invalid type " + reflect.TypeOf(data).String())
encoding/gob
decode.go#L1056: name := rt.String() // best we can do
encode.go#L465: panic("unknown type in isZero " + val.Type().String())
encoder.go#L223: panic("gob: cannot encode nil pointer of type " + value.Type().String())
type.go#L70: return nil, errors.New("can't represent recursive pointer type " + ut.base.String())
type.go#L534: tname = t.String()
type.go#L552: return nil, errors.New("gob NewTypeObject can't handle type: " + rt.String())
type.go#L618: panic("bootstrap type already present: " + name + ", " + rt.String())
type.go#L839: name := rt.String()
encoding/json
decode.go#L134: return "json: cannot unmarshal " + e.Value + " into Go struct field " + e.Struct + "." + e.Field + " of type " + e.Type.String()
decode.go#L136: return "json: cannot unmarshal " + e.Value + " into Go value of type " + e.Type.String()
decode.go#L150: return "json: cannot unmarshal object key " + strconv.Quote(e.Key) + " into unexported field " + e.Field.Name + " of type " + e.Type.String()
decode.go#L165: return "json: Unmarshal(non-pointer " + e.Type.String() + ")"
decode.go#L167: return "json: Unmarshal(nil " + e.Type.String() + ")"
encode.go#L236: return "json: unsupported type: " + e.Type.String()
encode.go#L277: " for type " + e.Type.String() +
encode.go#L802: e.error(fmt.Errorf("json: encoding error for type %q: %q", v.Type().String(), err.Error()))
fmt
print.go#L326: p.buf.writeString(v.Type().String())
print.go#L337: p.buf.writeString(reflect.TypeOf(p.arg).String())
print.go#L341: p.buf.writeString(p.value.Type().String())
print.go#L512: p.buf.writeString(value.Type().String())
print.go#L652: p.fmt.fmtS(reflect.TypeOf(arg).String())
print.go#L760: p.buf.writeString(f.Type().String())
print.go#L789: p.buf.writeString(f.Type().String())
print.go#L813: p.buf.writeString(f.Type().String())
print.go#L841: p.fmtBytes(bytes, verb, t.String())
print.go#L846: p.buf.writeString(f.Type().String())
print.go#L1140: 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())
internal/fmtsort
sort.go#L181: panic("bad type in compare: " + aType.String())
net/http
client.go#L328: if reflect.TypeOf(rt).String() == "*http2.Transport" {
src.elv.sh/pkg/rpc
server.go#L239: s := "rpc.Register: no service name for type " + s.typ.String()
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)