Update Contribute/Architecture/Services documentation (#27722)

This commit is contained in:
Joan López de la Franca Beltran 2020-09-23 12:34:00 +02:00 committed by GitHub
parent 80f0066a27
commit 3fb4a51404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ func init() {
}
```
`init` functions are only run whenever a package is imported, so we also need to import the package in the application. In the `server.go` file under `pkg/cmd/grafana-server`, import the package we just created:
`init` functions are only run whenever a package is imported, so we also need to import the package in the application. In the `server.go` file under `pkg/server`, import the package we just created:
```go
import _ "github.com/grafana/grafana/pkg/services/mysvc"