mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 10:55:11 +00:00
16 lines
319 B
Go
Executable File
16 lines
319 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/holidays"
|
|
)
|
|
|
|
// Get the list of countries that are supported by this API
|
|
func ListCountries() {
|
|
holidaysService := holidays.NewHolidaysService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := holidaysService.Countries(&holidays.CountriesRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|