mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 14:31:56 +00:00
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`
12 lines
213 B
Go
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{})
|
|
}
|