*PACKAGE PROTECTED METHODS */ setMetaString sets a metadata in string format
(namespace string, meta string)
| 541 | |
| 542 | // setMetaString sets a metadata in string format |
| 543 | func (node *Node) setMetaString(namespace string, meta string) { |
| 544 | if node.MetaStore == nil { |
| 545 | node.MetaStore = make(map[string]string) |
| 546 | } |
| 547 | if meta == "" { |
| 548 | delete(node.MetaStore, namespace) |
| 549 | } else { |
| 550 | node.MetaStore[namespace] = meta |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | // getMetaString gets a metadata string |
| 555 | func (node *Node) getMetaString(namespace string) (meta string) { |