Files
services/examples/holidays/countries/go/listCountries.go
2021-09-21 18:51:19 +01:00

15 lines
289 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/holidays"
"os"
)
//
func ListCountries() {
holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := holidaysService.Countries(&holidays.CountriesRequest{})
fmt.Println(rsp, err)
}