MCPcopy
hub / github.com/gofiber/fiber / validateServicesSlice

Function validateServicesSlice

services.go:37–44  ·  view source on GitHub ↗
(services []Service)

Source from the content-addressed store, hash-verified

35}
36
37func 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.

Callers 1

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected