GetMaxRecursionDepth returns the maximum recursion depth. Set to 0 to use the default value of 100000.
()
| 232 | // GetMaxRecursionDepth returns the maximum recursion depth. |
| 233 | // Set to 0 to use the default value of 100000. |
| 234 | func (m *Reader) GetMaxRecursionDepth() int { |
| 235 | if m.maxRecursionDepth <= 0 { |
| 236 | return recursionLimit |
| 237 | } |
| 238 | return m.maxRecursionDepth |
| 239 | } |
| 240 | |
| 241 | // SetMaxElements sets the maximum number of elements to allow in map, bin, array or extension payload. |
| 242 | // Setting this to 0 will allow any number of elements - math.MaxUint32. |