NewFmtCtxEx creates a FmtCtx.
(f FmtFlags, ann *Annotations)
| 215 | |
| 216 | // NewFmtCtxEx creates a FmtCtx. |
| 217 | func NewFmtCtxEx(f FmtFlags, ann *Annotations) *FmtCtx { |
| 218 | if ann == nil && f&flagsRequiringAnnotations != 0 { |
| 219 | panic(errors.AssertionFailedf("no Annotations provided")) |
| 220 | } |
| 221 | ctx := fmtCtxPool.Get().(*FmtCtx) |
| 222 | ctx.flags = f |
| 223 | ctx.ann = ann |
| 224 | return ctx |
| 225 | } |
| 226 | |
| 227 | // SetReformatTableNames modifies FmtCtx to to substitute the printing of table |
| 228 | // names using the provided function. |
no test coverage detected
searching dependent graphs…