Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
asim
2021-09-22 19:20:19 +00:00
parent 2d702178d3
commit 77c32acee8
9 changed files with 44 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"github.com/micro/services/clients/go/weather"
"os"
)
// Get the weather forecast for the next 1-10 days
func ForecastWeather() {
weatherService := weather.NewWeatherService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := weatherService.Forecast(&weather.ForecastRequest{
Days: 2,
Location: "London",
})
fmt.Println(rsp, err)
}