GetService returns a service present in the application's State.
(s *State, key string)
| 303 | |
| 304 | // GetService returns a service present in the application's State. |
| 305 | func GetService[T Service](s *State, key string) (T, bool) { |
| 306 | srv, ok := GetState[T](s, s.serviceKey(key)) |
| 307 | return srv, ok |
| 308 | } |
| 309 | |
| 310 | // MustGetService returns a service present in the application's State. |
| 311 | // It panics if the service is not found. |
nothing calls this directly
no test coverage detected
searching dependent graphs…