String satisfies the fmt.GoStringer interface, returns a Go representation of the set.
()
| 28 | // String satisfies the fmt.GoStringer interface, returns a Go representation of |
| 29 | // the set. |
| 30 | func (set CompressedSet) GoString() string { |
| 31 | b := bytes.Buffer{} |
| 32 | b.WriteString("ksuid.CompressedSet{") |
| 33 | set.writeTo(&b) |
| 34 | b.WriteByte('}') |
| 35 | return b.String() |
| 36 | } |
| 37 | |
| 38 | func (set CompressedSet) writeTo(b *bytes.Buffer) { |
| 39 | a := [27]byte{} |