MCPcopy Create free account
hub / github.com/apache/fory / getListDispatchId

Function getListDispatchId

go/fory/struct_init.go:107–112  ·  view source on GitHub ↗
(type_ reflect.Type)

Source from the content-addressed store, hash-verified

105}
106
107func getListDispatchId(type_ reflect.Type) DispatchId {
108 if type_.Kind() == reflect.Slice && type_.Elem().Kind() == reflect.String {
109 return StringSliceDispatchId
110 }
111 return UnknownDispatchId
112}
113
114// initFields initializes fields from local struct type using TypeResolver
115func (s *structSerializer) initFields(typeResolver *TypeResolver) error {

Callers 2

initFieldsMethod · 0.85
initFieldsFromTypeDefMethod · 0.85

Calls 1

KindMethod · 0.80

Tested by

no test coverage detected