From 21569080228b6902dfca2d8d9781ca5df98dd5b9 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 8 Sep 2022 04:10:13 +0200 Subject: [PATCH] Update 'README.md' --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 9429eae..fc8d1b7 100644 --- a/README.md +++ b/README.md @@ -84,21 +84,19 @@ In this case, we're requesting the current weather for Corvallis, OR. ``` func doCurrent(c pb.WeatherServiceClient) { - - res, err := c.Current(context.Background(), &pb.RequestCurrent{ - LocationType: pb.LocationType_LOCATION_TYPE_CITY, - Units: pb.Units_UNITS_METRIC, - Location: &pb.OneOfLocation{ - LocationId: &pb.OneOfLocation_City{ - City: "Corvallis", - }, - }, - }) - if err != nil { - log.Fatalln(err) - } - - log.Println(res.Payload) + res, err := c.Current(context.Background(), &pb.RequestCurrent{ + LocationType: pb.LocationType_LOCATION_TYPE_CITY, + Units: pb.Units_UNITS_METRIC, + Location: &pb.OneOfLocation{ + LocationId: &pb.OneOfLocation_City{ + City: "Corvallis", + }, + }, + }) + if err != nil { + log.Fatalln(err) + } + log.Println(res.Payload) } ```