func reflect.TypeFor
21 uses
reflect (current package)
map.go#L122: Type: TypeFor[uint64](),
type.go#L1388: func TypeFor[T any]() Type {
encoding/asn1
asn1.go#L690: bitStringType = reflect.TypeFor[BitString]()
asn1.go#L691: objectIdentifierType = reflect.TypeFor[ObjectIdentifier]()
asn1.go#L692: enumeratedType = reflect.TypeFor[Enumerated]()
asn1.go#L693: flagType = reflect.TypeFor[Flag]()
asn1.go#L694: timeType = reflect.TypeFor[time.Time]()
asn1.go#L695: rawValueType = reflect.TypeFor[RawValue]()
asn1.go#L696: rawContentsType = reflect.TypeFor[RawContent]()
asn1.go#L697: bigIntType = reflect.TypeFor[*big.Int]()
encoding/json
decode.go#L600: var textUnmarshalerType = reflect.TypeFor[encoding.TextUnmarshaler]()
decode.go#L844: return nil, &UnmarshalTypeError{Value: "number " + s, Type: reflect.TypeFor[float64](), Offset: int64(d.off)}
decode.go#L849: var numberType = reflect.TypeFor[Number]()
encode.go#L415: marshalerType = reflect.TypeFor[Marshaler]()
encode.go#L416: textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
encode.go#L1091: var isZeroerType = reflect.TypeFor[isZeroer]()
go.opentelemetry.io/otel/attribute
set.go#L61: keyValueType = reflect.TypeFor[KeyValue]()
value.go#L270: if !rv.IsValid() || rv.Kind() != reflect.Array || rv.Type().Elem() != reflect.TypeFor[Value]() {
value.go#L437: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeFor[Value]())).Elem()
go.opentelemetry.io/otel/attribute/internal
attribute.go#L60: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeFor[T]())).Elem()
attribute.go#L67: if !rv.IsValid() || rv.Kind() != reflect.Array || rv.Type().Elem() != reflect.TypeFor[T]() {
![]() |
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. |