mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
16 lines
191 B
Go
16 lines
191 B
Go
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()
|
|
}
|