Recurse returns an option that makes the stack advance with one level.
()
| 33 | |
| 34 | // Recurse returns an option that makes the stack advance with one level. |
| 35 | func (s *serializationState) Recurse() Option { |
| 36 | return func(ns *serializationState) { |
| 37 | ns.depth = s.depth + 1 |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Option represents a serialization option. |
| 42 | type Option func(*serializationState) |
no outgoing calls
no test coverage detected