Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1333 | |
| 1334 | // Format implements the NodeFormatter interface. |
| 1335 | func (d *DGeometry) Format(ctx *FmtCtx) { |
| 1336 | f := ctx.flags |
| 1337 | bareStrings := f.HasFlags(FmtFlags(lex.EncBareStrings)) |
| 1338 | if !bareStrings { |
| 1339 | ctx.WriteByte('\'') |
| 1340 | } |
| 1341 | ctx.WriteString(d.Geometry.EWKBHex()) |
| 1342 | if !bareStrings { |
| 1343 | ctx.WriteByte('\'') |
| 1344 | } |
| 1345 | } |
| 1346 | |
| 1347 | // Size implements the Datum interface. |
| 1348 | func (d *DGeometry) Size() uintptr { |
nothing calls this directly
no test coverage detected