summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/README.md b/README.md
index c329a020..db86f457 100644
--- a/README.md
+++ b/README.md
@@ -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 {