Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 741 | |
| 742 | // Format implements the NodeFormatter interface. |
| 743 | func (d *DIPAddr) Format(ctx *FmtCtx) { |
| 744 | f := ctx.flags |
| 745 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 746 | if !bareStrings { |
| 747 | ctx.WriteByte('\'') |
| 748 | } |
| 749 | ctx.WriteString(d.IPAddr.String()) |
| 750 | if !bareStrings { |
| 751 | ctx.WriteByte('\'') |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | // Size implements the Datum interface. |
| 756 | func (d *DIPAddr) Size() uintptr { |
nothing calls this directly
no test coverage detected