(attr string)
| 99 | } |
| 100 | |
| 101 | func ParseNamespaceBytes(attr string) ([]byte, string) { |
| 102 | splits := strings.SplitN(attr, NsSeparator, 2) |
| 103 | ns := make([]byte, 8) |
| 104 | binary.BigEndian.PutUint64(ns, strToUint(splits[0])) |
| 105 | return ns, splits[1] |
| 106 | } |
| 107 | |
| 108 | // ParseAttr returns the attr from the given value. |
| 109 | func ParseAttr(attr string) string { |
no test coverage detected