24 lines
363 B
Go
24 lines
363 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.unistack.org/micro/v4/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)
|
|
}
|
|
|
|
}
|