mtilda / techtrans-bot

A Twitch bot that tells you about cool inventions by pulling data from NASA's Technology Transfer API
MIT License
0 stars 0 forks source link

Cleanup unmarshalling of tech data #36

Open mtilda opened 3 years ago

mtilda commented 3 years ago

That tech.go file could use some work. The results key is an array of arrays of strings and one float.

Check it out here: https://api.nasa.gov/techtransfer/patent/?engine&api_key=DEMO_KEY

That one number is causing an error while unmarshalling. Luckily it is always in index 12 in the inner array, and we don't need that value.