rename ask to answer

This commit is contained in:
Asim Aslam
2021-06-30 15:35:06 +01:00
parent 9600a24a71
commit 6d401db8b1
15 changed files with 100 additions and 99 deletions

24
answer/main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
"github.com/micro/services/answer/handler"
pb "github.com/micro/services/answer/proto"
)
func main() {
// Create service
srv := service.New(
service.Name("answer"),
service.Version("latest"),
)
// Register handler
pb.RegisterAnswerHandler(srv.Server(), new(handler.Answer))
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}