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

Method RegisterStructByName

go/fory/threadsafe/fory.go:94–98  ·  view source on GitHub ↗

RegisterStructByName registers a struct type by name for cross-language serialization.

(type_ any, name string)

Source from the content-addressed store, hash-verified

92
93// RegisterStructByName registers a struct type by name for cross-language serialization.
94func (f *Fory) RegisterStructByName(type_ any, name string) error {
95 inner := f.acquire()
96 defer f.release(inner)
97 return inner.RegisterStructByName(type_, name)
98}
99
100// ============================================================================
101// Generic package-level functions

Callers 8

TestValidationDemoXlangFunction · 0.95
TestSliceDemoXlangFunction · 0.95
TestDeserializeFunction · 0.45
testNamedSimpleStructFunction · 0.45
testSkipNameCustomFunction · 0.45
testConsistentNamedFunction · 0.45

Calls 2

acquireMethod · 0.95
releaseMethod · 0.95

Tested by 4

TestValidationDemoXlangFunction · 0.76
TestSliceDemoXlangFunction · 0.76
TestDeserializeFunction · 0.36