String satisfies the fmt.Stringer interface, returns a human-readable string representation of the set.
()
| 18 | // String satisfies the fmt.Stringer interface, returns a human-readable string |
| 19 | // representation of the set. |
| 20 | func (set CompressedSet) String() string { |
| 21 | b := bytes.Buffer{} |
| 22 | b.WriteByte('[') |
| 23 | set.writeTo(&b) |
| 24 | b.WriteByte(']') |
| 25 | return b.String() |
| 26 | } |
| 27 | |
| 28 | // String satisfies the fmt.GoStringer interface, returns a Go representation of |
| 29 | // the set. |