Commit 6490250f authored by Fredrik Lønnemo's avatar Fredrik Lønnemo
Browse files

minor touchups

parent 819d318b
......@@ -23,7 +23,6 @@ func main() {
fmt.Println("Running on port ", port )
err := http.ListenAndServe(":" + port, nil)
if err != nil {
fmt.Print("||||||||||||||| PROBLEM IN MAIN |||||||||||||||")
log.Fatal(err.Error())
}
}
......@@ -17,15 +17,15 @@ type Country struct{
Code string `json:"alpha2code"`
Countryname string `json:"name"`
CountryFlag string `json:"flag"`
Species []Species `json:"results"`
SpeciesKey []SpeciesKey `json:"results"`
Species []InnerName `json:"results"`
SpeciesKey []InnerKey `json:"results"`
}
type SpeciesName struct{
type InnerName struct{
Name string `json:"species"`
}
type SpeciesKey struct{
type InnerKey struct{
Key int `json:"key"`
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment