newScopes creates a new, empty Scopes. Some operations can't be safely performed until a Group is added with Push.
()
| 32 | // newScopes creates a new, empty Scopes. |
| 33 | // Some operations can't be safely performed until a Group is added with Push. |
| 34 | func newScopes() *Scopes { |
| 35 | return &Scopes{ |
| 36 | scopes: newGroup(), |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Copy creates a copy of the current Scopes values, including a copy of its parent if non-nil. |
| 41 | func (s *Scopes) Copy() *Scopes { |