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

Function convertStructInfos

go/fory/codegen/generator.go:354–360  ·  view source on GitHub ↗

convertStructInfos converts []*StructInfo to []StructInfo

(structs []*StructInfo)

Source from the content-addressed store, hash-verified

352
353// convertStructInfos converts []*StructInfo to []StructInfo
354func convertStructInfos(structs []*StructInfo) []StructInfo {
355 result := make([]StructInfo, len(structs))
356 for i, s := range structs {
357 result[i] = *s
358 }
359 return result
360}
361
362// isCompileGuardError checks if the error is due to compile-time guard conflicts
363func isCompileGuardError(errMsg string) bool {

Callers 2

generateCodeForFileFunction · 0.85
generateCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected