String returns a string representation of BitArray: BA{ }, where is a sequence of 'x' (1) and '_' (0). The includes spaces and newlines to help people. For a simple sequence of 'x' and '_' characters with no spaces or newlines, see the MarshalJSON() method. Examp
()
| 299 | // see the MarshalJSON() method. |
| 300 | // Example: "BA{_x_}" or "nil-BitArray" for nil. |
| 301 | func (bA *BitArray) String() string { |
| 302 | return bA.StringIndented("") |
| 303 | } |
| 304 | |
| 305 | // StringIndented returns the same thing as String(), but applies the indent |
| 306 | // at every 10th bit, and twice at every 50th bit. |