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

17 lines
293 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/holidays"
"os"
)
//
func GetHolidays() {
holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := holidaysService.List(&holidays.ListRequest{
Year: 2022,
})
fmt.Println(rsp, err)
}