sourcegraph/cmd/msp-example/main.go
Robert Lin 17a5fdb1d2
chore/msp-example: refactor to align with service structure best practices (#62954)
In monorepo:

```
cmd/my-service/main.go
-> cmd/my-service/service
-> cmd/my-service/internal/...
```

Outside monorepo a similar unnested structure aligns with this as well:

```
cmd/my-service <- command
service/...    <- entrypoint
internal/...   <- internal implementation
```


## Test plan

Basic example builds and runs: `sg run msp-example`
2024-05-29 09:58:43 -07:00

12 lines
213 B
Go

package main
import (
"github.com/sourcegraph/sourcegraph/lib/managedservicesplatform/runtime"
"github.com/sourcegraph/sourcegraph/cmd/msp-example/service"
)
func main() {
runtime.Start(service.Service{})
}