Merge branch 'rewrite'
# Conflicts: # cmd/script/main.go # go.mod # go.sum # handler/handlers.go # handler/writer.go # proto/go_generate/dashboard.pb.go # proto/micro/dashboard_micro.pb.go # proto/micro/dashboard_micro_http.pb.go # proto/pkgdash.pb.validate.go # service/client_git/client.go # service/client_git/client_test.go # service/service.go # storage/postgres/quries.go # storage/postgres/storage.go # storage/sqlite/storage.go # storage/storage.go # storage/storage_test.go
This commit is contained in:
22
cmd/pkgdash/main.go
Normal file
22
cmd/pkgdash/main.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.unistack.org/micro/v3/logger"
|
||||
"go.unistack.org/unistack-org/pkgdash/service"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
|
||||
svc, err := service.NewService(ctx)
|
||||
if err != nil {
|
||||
logger.Fatalf(ctx, "failed to create service: %v", err)
|
||||
}
|
||||
|
||||
// start server
|
||||
if err = svc.Run(); err != nil {
|
||||
logger.Fatal(ctx, err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user