All Posts

Golang Cannot unmarshal string into Go value of type int(solved)

Sometimes your client side application could send a valid integer as a string while your application expect an integer. This leads you to getting the error json: cannot unmarshal string into Go struct field Item.