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

Function getStructNames

go/fory/codegen/utils.go:460–466  ·  view source on GitHub ↗

getStructNames extracts struct names from StructInfo slice

(structs []*StructInfo)

Source from the content-addressed store, hash-verified

458
459// getStructNames extracts struct names from StructInfo slice
460func getStructNames(structs []*StructInfo) []string {
461 names := make([]string, len(structs))
462 for i, s := range structs {
463 names[i] = s.Name
464 }
465 return names
466}
467
468// analyzeField analyzes a struct field and creates FieldInfo
469func analyzeField(field *types.Var, structTag string, index int) (*FieldInfo, error) {

Callers 2

processPackageFileFunction · 0.85
processPackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected