(name string, val any)
| 216 | } |
| 217 | |
| 218 | func (r *RootElem) SetAtomVal(name string, val any) error { |
| 219 | r.atomLock.Lock() |
| 220 | defer r.atomLock.Unlock() |
| 221 | |
| 222 | atom, ok := r.Atoms[name] |
| 223 | if !ok { |
| 224 | return fmt.Errorf("atom %q not found", name) |
| 225 | } |
| 226 | return atom.SetVal(val) |
| 227 | } |
| 228 | |
| 229 | func (r *RootElem) RemoveAtom(name string) { |
| 230 | r.atomLock.Lock() |
no test coverage detected