mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-29 18:04:17 +02:00
21 lines
262 B
Go
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)
|
|
}
|
|
}
|