murex icon indicating copy to clipboard operation
murex copied to clipboard

TODO: Thread safe variable dump

Open lmorg opened this issue 4 years ago • 0 comments

// Dump returns a map of the structure of all variables in scope
func (v *Variables) Dump() interface{} {
	v.mutex.Lock()
	vars := v.vars // TODO: This isn't thread safe
	v.mutex.Unlock()

	return vars
}

lmorg avatar Jul 01 '20 21:07 lmorg