HasAnyFlags tests whether any of the given flags are all set.
(subset FmtFlags)
| 45 | |
| 46 | // HasAnyFlags tests whether any of the given flags are all set. |
| 47 | func (f FmtFlags) HasAnyFlags(subset FmtFlags) bool { |
| 48 | return f&subset != 0 |
| 49 | } |
| 50 | |
| 51 | // EncodeFlags returns the subset of the flags that are also lex encode flags. |
| 52 | func (f FmtFlags) EncodeFlags() lex.EncodeFlags { |