Update README.md

This commit is contained in:
Asim Aslam 2020-05-31 11:28:32 +01:00 committed by GitHub
parent ff49b4fc71
commit ca9b877646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,12 +57,15 @@ To make use of Go Micro
```golang
import "github.com/micro/go-micro/v2"
// create a new service
service := micro.NewService(
micro.Name("helloworld"),
)
// initialise flags
service.Init()
// start the service
service.Run()
```