Created
January 15, 2022 18:32
-
-
Save jcdan3/b0718853797b61222d5f136004b66748 to your computer and use it in GitHub Desktop.
print public holidays http payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func printPayload(){ | |
url := "https://date.nager.at/api/v2/publicholidays/2020/US" | |
data,_ := http.Get(url) | |
payload,_ := ioutil.ReadAll(data.Body) | |
fmt.Println(string(payload)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment