String implements fmt.Stringer.
()
| 415 | |
| 416 | // String implements fmt.Stringer. |
| 417 | func (p *peer) String() string { |
| 418 | return fmt.Sprintf("Peer %s [%s]", p.id, |
| 419 | fmt.Sprintf("cpc/%2d", p.version), |
| 420 | ) |
| 421 | } |
| 422 | |
| 423 | func (p *peer) IDString() string { |
| 424 | return fmt.Sprintf("%x", p.ID().Bytes()[:8]) |
no outgoing calls
no test coverage detected