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

unnecessary strconv

parent 2cac473f
No related branches found
No related tags found
No related merge requests found
package pkg package pkg
import "strconv"
const speciesApi = "http://api.gbif.org/v1/species/" const speciesApi = "http://api.gbif.org/v1/species/"
// struct for getting correct json keys // struct for getting correct json keys
...@@ -55,7 +53,7 @@ func GetSpecies(key string) (SpecieReturn, error) { ...@@ -55,7 +53,7 @@ func GetSpecies(key string) (SpecieReturn, error) {
// specie that has correct json format // specie that has correct json format
returnVal := SpecieReturn{ returnVal := SpecieReturn{
Key: strconv.Itoa(specie.Key), Key: key,
Kingdom: specie.Kingdom, Kingdom: specie.Kingdom,
Phylum: specie.Phylum, Phylum: specie.Phylum,
Order: specie.Order, Order: specie.Order,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment