Files
services/examples/prayer/times/go/prayerTimes.go

17 lines
291 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/prayer"
"os"
)
//
func PrayerTimes() {
prayerService := prayer.NewPrayerService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := prayerService.Times(&prayer.TimesRequest{
Location: "london",
})
fmt.Println(rsp, err)
}