3 ms·
With respect to DRY'ing the JSON code, isn't something like this workable: err = json.NewEncoder(w).Encode(&task) I know there used to be a reason why thi
by tptacek 6y ago
With respect to DRY'ing the JSON code, isn't something like this workable:
err = json.NewEncoder(w).Encode(&task)
I know there used to be a reason why this was disfavored but thought it had been addressed in the stdlib.