Skip to content
Snippets Groups Projects
Commit ec4832a7 authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

created basic struct for countries

parent fd46f4d1
No related branches found
No related tags found
No related merge requests found
......@@ -26,16 +26,16 @@ func main() {
func dHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "aiaiai")
_, _ = fmt.Fprintln(w, "aiaiai")
}
func cHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "aiaiai")
_, _ = fmt.Fprintln(w, "aiaiai")
}
func sHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "aiaiai")
_, _ = fmt.Fprintln(w, "aiaiai")
}
\ No newline at end of file
package models
type country struct {
Code string `json:"code"`
CountryName string `json:"countryname"`
CountryFlag string `json:"countryflag"`
Species []specie `json:"species"`
SpeciesKey []int `json:"specieskey"`
}
\ No newline at end of file
package models
type specie struct {
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment