Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 708 | |
| 709 | // Format implements the NodeFormatter interface. |
| 710 | func (d *DUuid) Format(ctx *FmtCtx) { |
| 711 | f := ctx.flags |
| 712 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 713 | if !bareStrings { |
| 714 | ctx.WriteByte('\'') |
| 715 | } |
| 716 | ctx.WriteString(d.UUID.String()) |
| 717 | if !bareStrings { |
| 718 | ctx.WriteByte('\'') |
| 719 | } |
| 720 | } |
| 721 | |
| 722 | // Size implements the Datum interface. |
| 723 | func (d *DUuid) Size() uintptr { |
nothing calls this directly
no test coverage detected