DEV Community

Discussion on: API With GO Buffalo in 2021: from zero to deploy

Collapse
 
alexmercedcoder profile image
Alex Merced

try converting the param to a string in the function strconv.atoi. I'll double check why it was working for me in a bit.

Collapse
 
alexmercedcoder profile image
Alex Merced

The reason it works for me is cause I send the body via JSON so it's an integer, but if you send it via URL query it will be a string