Property Storage: SetProperty sets given the given property to the given value.
(key string, value any)
| 404 | |
| 405 | // SetProperty sets given the given property to the given value. |
| 406 | func (n *NodeBase) SetProperty(key string, value any) { |
| 407 | if n.Properties == nil { |
| 408 | n.Properties = map[string]any{} |
| 409 | } |
| 410 | n.Properties[key] = value |
| 411 | } |
| 412 | |
| 413 | // Property returns the property value for the given key. |
| 414 | // It returns nil if it doesn't exist. |
no outgoing calls