Skip to content

Is it possible to make everything in a model a pointer and let nullable fields use guregu/null package? #360

Answered by go-jet
logic-and-math asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @logic-and-math ,

I'm wondering if changing every model field to a pointer will break something in serialization/deserialisation?

No, it should be fine. It should work regardless of the presence of the pointer.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@logic-and-math
Comment options

@go-jet
Comment options

@logic-and-math
Comment options

Answer selected by logic-and-math
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants