You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, all handlers receive a *http.Request. This means that there is a lot of repeated code for extracting the data for each handler. A better method would be to pass a []byte to each handler with the handler's Unmarshalling the JSON.
The text was updated successfully, but these errors were encountered:
Right now, all handlers receive a
*http.Request
. This means that there is a lot of repeated code for extracting the data for each handler. A better method would be to pass a[]byte
to each handler with the handler's Unmarshalling the JSON.The text was updated successfully, but these errors were encountered: