2023-08-07 21:30:30 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2023-08-10 12:38:55 +03:00
|
|
|
"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)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|