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