diff options
author | Wolfy-J <[email protected]> | 2018-06-22 22:21:26 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2018-06-22 22:21:26 +0300 |
commit | 8121fd164ec5385c8dbc9db8dd013a193334dbac (patch) | |
tree | 1c8e578d5ec4bf0c50dbd34b47ff5cd54b3025db | |
parent | 5a1fcfdddb8a2f2ba5df8d2e3c9de999c0c60dde (diff) |
Update README.md
-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 { |