diff options
-rw-r--r-- | README.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -220,17 +220,13 @@ Simple service might look like: ```golang package service -import ( - "github.com/spiral/roadrunner/service" -) +import "github.com/spiral/roadrunner/service" const ID = "service" - type Service struct { cfg *config } - func (s *Service) Init(cfg service.Config, reg service.Container) (enabled bool, err error) { config := &config{} if err := cfg.Unmarshal(config); err != nil { |