String returns a string representation of the key.
()
| 147 | |
| 148 | // String returns a string representation of the key. |
| 149 | func (k *Key) String() string { |
| 150 | if k == nil { |
| 151 | return "" |
| 152 | } |
| 153 | b := bytes.NewBuffer(make([]byte, 0, 512)) |
| 154 | k.marshal(b) |
| 155 | return b.String() |
| 156 | } |
| 157 | |
| 158 | type gobKey struct { |
| 159 | Kind string |