mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-17 17:44:30 +02:00
d94936f6c9
* v3 * revert plugins * fixup some issues
21 lines
260 B
Go
21 lines
260 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/asim/go-micro/v3"
|
|
"github.com/asim/go-micro/v3/server"
|
|
)
|
|
|
|
func main() {
|
|
service := micro.NewService()
|
|
|
|
service.Server().Init(
|
|
server.Wait(nil),
|
|
)
|
|
|
|
if err := service.Run(); err != nil {
|
|
fmt.Println(err)
|
|
}
|
|
}
|