mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
Update Contribute/Architecture/Services documentation (#27722)
This commit is contained in:
parent
80f0066a27
commit
3fb4a51404
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user