WithOffline stops the [Reader] from being able to make network connections. It will still be able to read local files and cached copies of remote files.
(offline bool)
| 115 | // WithOffline stops the [Reader] from being able to make network connections. |
| 116 | // It will still be able to read local files and cached copies of remote files. |
| 117 | func WithOffline(offline bool) ReaderOption { |
| 118 | return &offlineOption{offline: offline} |
| 119 | } |
| 120 | |
| 121 | type offlineOption struct { |
| 122 | offline bool |
no outgoing calls
no test coverage detected
searching dependent graphs…