newCreationState creates and returns a new creationState instance.
()
| 34 | |
| 35 | // newCreationState creates and returns a new creationState instance. |
| 36 | func newCreationState() *creationState { |
| 37 | return &creationState{ |
| 38 | currentlyInCreation: make(map[string]struct{}), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // withCreationState adds a new creationState to the given context. |
| 43 | // If the context already has one, it returns the same context. |
no outgoing calls