idiomatic -> template

This commit is contained in:
Janos Dobronszki
2020-10-02 15:54:09 +02:00
parent 64003797db
commit 3d1eb49b1b
11 changed files with 26 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package main
import (
"github.com/micro/services/idiomatic/handler"
"github.com/micro/services/template/handler"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"

View File

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

View File

@@ -5,7 +5,7 @@ import (
log "github.com/micro/micro/v3/service/logger"
idiomatic "github.com/micro/services/idiomatic/proto"
idiomatic "github.com/micro/services/template/proto"
)
type Idiomatic struct{}