pkgdash/cmd/rest/server.go

24 lines
363 B
Go
Raw Normal View History

2023-08-07 21:30:30 +03:00
package main
import (
"context"
"go.unistack.org/micro/v3/logger"
2023-08-07 21:30:30 +03:00
"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)
}
}