mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 20:44:46 +00:00
[WIP] Moving test services to this repo
This commit is contained in:
15
example/main.go
Normal file
15
example/main.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"example/handler"
|
||||
|
||||
"github.com/micro/micro/v3/service"
|
||||
)
|
||||
|
||||
func main() {
|
||||
srv := service.New(service.Name("example"))
|
||||
|
||||
srv.Handle(new(handler.Example))
|
||||
|
||||
srv.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user