func GetGenres(params map[string]string) Genres { parameters := buildParameters(params) response := httputil.DoGet("http://freemusicarchive.org/api/get/genres.json?" + parameters) genresDataSet := Genres{} json.Unmarshal([]byte(response), &genresDataSet) return genresDataSet }
func GetTracks(params map[string]string) Tracks { parameters := buildParameters(params) response := httputil.DoGet("http://freemusicarchive.org/api/get/tracks.json?" + parameters) tracksDataSet := Tracks{} json.Unmarshal([]byte(response), &tracksDataSet) return tracksDataSet }