mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
15 lines
289 B
Go
Executable File
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)
|
|
}
|