EncodeFlags returns the subset of the flags that are also lex encode flags.
()
| 37 | |
| 38 | // EncodeFlags returns the subset of the flags that are also lex encode flags. |
| 39 | func (f FmtFlags) EncodeFlags() lex.EncodeFlags { |
| 40 | return lex.EncodeFlags(f) & (lex.EncFirstFreeFlagBit - 1) |
| 41 | } |
| 42 | |
| 43 | // Basic bit definitions for the FmtFlags bitmask. |
| 44 | const ( |