defaultConfig returns the default configuration
()
| 77 | |
| 78 | // defaultConfig returns the default configuration |
| 79 | func defaultConfig() Config { |
| 80 | return Config{ |
| 81 | TrackRef: false, // Match Java's default: reference tracking disabled |
| 82 | MaxDepth: 20, |
| 83 | IsXlang: true, |
| 84 | MaxTypeFields: 512, |
| 85 | MaxTypeMetaBytes: 4096, |
| 86 | MaxSchemaVersionsPerType: 10, |
| 87 | MaxAverageSchemaVersionsPerType: 3, |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | // Option is a function that configures a Fory instance |
| 92 | type Option func(*Fory) |
no outgoing calls