summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-22 22:21:26 +0300
committerGitHub <[email protected]>2018-06-22 22:21:26 +0300
commit8121fd164ec5385c8dbc9db8dd013a193334dbac (patch)
tree1c8e578d5ec4bf0c50dbd34b47ff5cd54b3025db /README.md
parent5a1fcfdddb8a2f2ba5df8d2e3c9de999c0c60dde (diff)
Update README.md
Diffstat (limited to 'README.md')
-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 {