JSON jsonified copy message
()
| 215 | |
| 216 | // JSON jsonified copy message |
| 217 | func (c copyMessage) JSON() string { |
| 218 | c.Status = "success" |
| 219 | copyMessageBytes, e := json.MarshalIndent(c, "", " ") |
| 220 | fatalIf(probe.NewError(e), "Unable to marshal into JSON.") |
| 221 | |
| 222 | return string(copyMessageBytes) |
| 223 | } |
| 224 | |
| 225 | // Progress - an interface which describes current amount |
| 226 | // of data written. |