NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is not valid. The NodeID is only well defined for version 1 and 2 UUIDs.
()
| 84 | // NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is |
| 85 | // not valid. The NodeID is only well defined for version 1 and 2 UUIDs. |
| 86 | func (uuid UUID) NodeID() []byte { |
| 87 | var node [6]byte |
| 88 | copy(node[:], uuid[10:]) |
| 89 | return node[:] |
| 90 | } |
no outgoing calls