Commit 3fb4a514 by Joan López de la Franca Beltran Committed by GitHub

Update Contribute/Architecture/Services documentation (#27722)

parent 80f0066a
...@@ -40,7 +40,7 @@ func init() { ...@@ -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 ```go
import _ "github.com/grafana/grafana/pkg/services/mysvc" import _ "github.com/grafana/grafana/pkg/services/mysvc"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment