1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-29 18:04:17 +02:00
2020-12-26 15:17:20 +00:00

21 lines
262 B
Go

package main
import (
"fmt"
"github.com/micro/go-micro/v2"
"github.com/micro/go-micro/v2/server"
)
func main() {
service := micro.NewService()
service.Server().Init(
server.Wait(nil),
)
if err := service.Run(); err != nil {
fmt.Println(err)
}
}