HasFlags returns true iff the given flags are set in the formatter context.
(f FmtFlags)
| 256 | |
| 257 | // HasFlags returns true iff the given flags are set in the formatter context. |
| 258 | func (ctx *FmtCtx) HasFlags(f FmtFlags) bool { |
| 259 | return ctx.flags.HasFlags(f) |
| 260 | } |
| 261 | |
| 262 | // Printf calls fmt.Fprintf on the linked bytes.Buffer. It is provided |
| 263 | // for convenience, to avoid having to call fmt.Fprintf(&ctx.Buffer, ...). |