cms-template/main.go
Vasiliy Tolstov 973f9ac822
Some checks failed
build / test (push) Failing after 5s
build / lint (push) Failing after 6s
initial import
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-09-26 19:45:39 +03:00

25 lines
375 B
Go

//go:build !single
package main
import (
"context"
"go.unistack.org/cms-template/service"
"go.unistack.org/micro/v3/logger"
)
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)
}
}