string vs []byte for structs #21
jessepeterson
started this conversation in
Technical
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In many structs we've chosen to use strings (or []bytes) for struct fields that come from or go into JSON. The decision for one or the other hasn't been fully thought out in every case. In some cases there's batches of type conversions to populate and/or read from whole structs. To re-think a bunch of struct fields.
Beta Was this translation helpful? Give feedback.
All reactions