(w fmt.State, v rune)
| 424 | } |
| 425 | |
| 426 | func (b Broker) Format(w fmt.State, v rune) { |
| 427 | switch v { |
| 428 | case 'd': |
| 429 | io.WriteString(w, itoa(b.ID)) |
| 430 | case 's': |
| 431 | io.WriteString(w, b.String()) |
| 432 | case 'v': |
| 433 | io.WriteString(w, itoa(b.ID)) |
| 434 | io.WriteString(w, " ") |
| 435 | io.WriteString(w, b.String()) |
| 436 | if b.Rack != "" { |
| 437 | io.WriteString(w, " ") |
| 438 | io.WriteString(w, b.Rack) |
| 439 | } |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | func itoa(i int32) string { |
| 444 | return strconv.Itoa(int(i)) |
nothing calls this directly
no test coverage detected