plain-lunch-50969
08/01/2022, 4:17 PMplain-lunch-50969
08/01/2022, 4:26 PMb, _ := ioutil.ReadAll(resp.Body)
e := &client.NullableJsonError{}
_ := e.UnmarshalJSON(b)
genericError := e.Get().Error
steep-lamp-91158
var e client.NullableJsonError
err := json.NewDecoder(resp.Body).Unmarshal(&e)
plain-lunch-50969
08/01/2022, 4:54 PMsteep-lamp-91158
plain-lunch-50969
08/01/2022, 4:56 PMsteep-lamp-91158
plain-lunch-50969
08/01/2022, 4:56 PMplain-lunch-50969
08/01/2022, 5:36 PMresp
vs error
when something goes wrong? And how to unpack Reason vs. Details vs. Message in the Error.plain-lunch-50969
08/01/2022, 6:10 PMTraits
from an Identity
? I assume there's a nice way to do this without having to cast.