String returns the textual output of the histogram values as string.
()
| 141 | |
| 142 | // String returns the textual output of the histogram values as string. |
| 143 | func (h *Histogram) String() string { |
| 144 | var b bytes.Buffer |
| 145 | h.Print(&b) |
| 146 | return b.String() |
| 147 | } |
| 148 | |
| 149 | // Clear resets all the content of histogram. |
| 150 | func (h *Histogram) Clear() { |