Print prints an Outputs instance
(out io.Writer)
| 312 | |
| 313 | // Print prints an Outputs instance |
| 314 | func (o Outputs) Print(out io.Writer) error { |
| 315 | fmt.Fprint(out, "[") |
| 316 | first := true |
| 317 | for _, output := range o { |
| 318 | if first { |
| 319 | fmt.Fprint(out, "\n\t") |
| 320 | } else { |
| 321 | fmt.Fprint(out, "\t,") |
| 322 | } |
| 323 | first = false |
| 324 | err := output.print(out, "\t") |
| 325 | if err != nil { |
| 326 | return err |
| 327 | } |
| 328 | } |
| 329 | fmt.Fprint(out, "]\n") |
| 330 | return nil |
| 331 | } |
| 332 | |
| 333 | // wrapCosignErrorMessage wraps the message from the given error indicating the |
| 334 | // type of check that was performed. It may also completely change the message |