IsUserVisibleModule check if given module is public or not. Returns true if and only if the given module is registered and is public.
(mod string)
| 144 | // IsUserVisibleModule check if given module is public or not. Returns true |
| 145 | // if and only if the given module is registered and is public. |
| 146 | func (m *Manager) IsUserVisibleModule(mod string) bool { |
| 147 | val, ok := m.modules[mod] |
| 148 | |
| 149 | if ok { |
| 150 | return val.userVisible |
| 151 | } |
| 152 | |
| 153 | return false |
| 154 | } |
| 155 | |
| 156 | // IsModuleRegistered checks if the given module has been registered or not. Returns true |
| 157 | // if the module has previously been registered via a call to RegisterModule, false otherwise. |
no outgoing calls