MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Recurse

Method Recurse

pkg/goproto/struct.go:35–39  ·  view source on GitHub ↗

Recurse returns an option that makes the stack advance with one level.

()

Source from the content-addressed store, hash-verified

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

Callers 5

MapFunction · 0.80
SliceFunction · 0.80
StructFunction · 0.80
ListFunction · 0.80
valueFromReflectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected