mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 14:05:23 +00:00
Add vendor test service
This commit is contained in:
19
test/vendor/main.go
vendored
Normal file
19
test/vendor/main.go
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user