mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
20 lines
317 B
Go
20 lines
317 B
Go
package main
|
|
|
|
import (
|
|
// a relative import outside the go mod
|
|
_ "github.com/micro/services/test/routes"
|
|
|
|
"github.com/micro/micro/v3/service"
|
|
"github.com/micro/micro/v3/service/logger"
|
|
)
|
|
|
|
func main() {
|
|
srv := service.New(
|
|
service.Name("vendor"),
|
|
)
|
|
|
|
if err := srv.Run(); err != nil {
|
|
logger.Fatal(err)
|
|
}
|
|
}
|