reflect.Type.Key (method)
18 uses
reflect (current package)
type.go#L196: Key() Type
encoding/json
decode.go#L639: switch t.Key().Kind() {
decode.go#L644: if !reflect.PointerTo(t.Key()).Implements(textUnmarshalerType) {
decode.go#L782: kt := t.Key()
encode.go#L821: switch t.Key().Kind() {
encode.go#L826: if !t.Key().Implements(textMarshalerType) {
github.com/go-pg/pg/v10/orm
model.go#L145: if typ.Key().Kind() != reflect.String || typ.Elem().Kind() != reflect.Interface {
github.com/go-pg/pg/v10/types
hstore_append.go#L11: if typ.Key() == stringType && typ.Elem() == stringType {
hstore_scan.go#L9: if typ.Key() == stringType && typ.Elem() == stringType {
github.com/google/go-cmp/cmp/internal/value
name.go#L132: b = appendTypeName(b, t.Key(), qualified, false)
github.com/vmihailenco/msgpack/v5
decode_map.go#L238: keyType := typ.Key()
decode_value.go#L112: if typ.Key() == stringType {
encode_value.go#L110: if typ.Key() == stringType {
google.golang.org/protobuf/internal/impl
convert_map.go#L25: keyConv: newSingularConverter(t.Key(), fd.MapKey()),
legacy_message.go#L350: aberrantAppendField(md2, t.Key(), tagKey, "", "")
gotest.tools/v3/assert/cmp
compare.go#L185: if itemValue.Type() != colValue.Type().Key() {
text/template
exec.go#L654: if nameVal.Type().AssignableTo(receiver.Type().Key()) {
funcs.go#L228: index, err := prepareArg(index, item.Type().Key())