package main import ( "github.com/micro/micro/v3/service" "github.com/micro/micro/v3/service/logger" "github.com/micro/services/blog/posts/handler" tags "github.com/micro/services/blog/tags/proto" ) func main() { // Create the service srv := service.New( service.Name("posts"), ) // Register Handler srv.Handle(&handler.Posts{ Tags: tags.NewTagsService("tags", srv.Client()), }) // Run service if err := srv.Run(); err != nil { logger.Fatal(err) } }