Files
services/notes/main.go
ben-toogood 25993c656a Notes Service (#12)
* Notes Service

* go mod tidy

* go mod tidy
2020-10-16 13:13:18 +01:00

23 lines
403 B
Go

package main
import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/notes/handler"
pb "github.com/micro/services/notes/proto"
)
func main() {
srv := service.New(
service.Name("notes"),
service.Version("latest"),
)
pb.RegisterNotesHandler(srv.Server(), handler.New())
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}