Skip to content

[QUESTION] How can I achieve the samve behavior as go-pg's use_zero for pointer fields? #618

Answered by vmihailenco
Warashi asked this question in Q&A
Discussion options

You must be logged in to vote

Don't use a pointer? E.g. use string instead of *string.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Warashi
Comment options

@Warashi
Comment options

Answer selected by Warashi
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
Converted from issue

This discussion was converted from issue #617 on July 18, 2022 05:56.