This commit is contained in:
Mike Farah
2021-07-07 14:29:24 +10:00
parent f285a684ec
commit d1b6a6fdd9
3 changed files with 22 additions and 2 deletions
+6
View File
@@ -66,3 +66,9 @@ func (n *Context) ReadOnlyClone() Context {
clone.DontAutoCreate = true
return clone
}
func (n *Context) WritableClone() Context {
clone := n.Clone()
clone.DontAutoCreate = false
return clone
}