IsWriter checks if allowed to publish (writer flag W is set).
()
| 813 | |
| 814 | // IsWriter checks if allowed to publish (writer flag W is set). |
| 815 | func (m AccessMode) IsWriter() bool { |
| 816 | return m&ModeWrite != 0 |
| 817 | } |
| 818 | |
| 819 | // IsReader checks if reader flag R is set. |
| 820 | func (m AccessMode) IsReader() bool { |
no outgoing calls
no test coverage detected