From ff27a8d0966f58915eb366dc96b11fdab2c1189c Mon Sep 17 00:00:00 2001 From: Andreas Magnarson Nypan <andrenyp@stud.ntnu.no> Date: Fri, 7 Mar 2025 13:10:25 +0000 Subject: [PATCH] Upload New File --- models/CountryInfo.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 models/CountryInfo.go diff --git a/models/CountryInfo.go b/models/CountryInfo.go new file mode 100644 index 0000000..8644e1b --- /dev/null +++ b/models/CountryInfo.go @@ -0,0 +1,13 @@ +package models + +// CountryInfo represents the response structure for country information. +type CountryInfoStruct struct { + Name string `json:"name"` + Continents []string `json:"continents"` + Population int `json:"population"` + Languages []string `json:"languages"` + Borders []string `json:"borders"` + Flag string `json:"flag"` + Capital string `json:"capital"` + Cities []string `json:"cities"` +} -- GitLab