EncodeFlags returns the subset of the flags that are also lex encode flags.
()
| 50 | |
| 51 | // EncodeFlags returns the subset of the flags that are also lex encode flags. |
| 52 | func (f FmtFlags) EncodeFlags() lex.EncodeFlags { |
| 53 | return lex.EncodeFlags(f) & (lex.EncFirstFreeFlagBit - 1) |
| 54 | } |
| 55 | |
| 56 | // Basic bit definitions for the FmtFlags bitmask. |
| 57 | const ( |