(services []Service)
| 35 | } |
| 36 | |
| 37 | func validateServicesSlice(services []Service) error { |
| 38 | for idx, srv := range services { |
| 39 | if srv == nil { |
| 40 | return fmt.Errorf("fiber: service at index %d is nil", idx) |
| 41 | } |
| 42 | } |
| 43 | return nil |
| 44 | } |
| 45 | |
| 46 | // initServices If the app is configured to use services, this function registers |
| 47 | // a post shutdown hook to shutdown them after the server is closed. |
no test coverage detected