3 ms·
Interesting...point about using pointers to get nullable JSON values. Especially important for booleans, where false is the default value, and would not show u
by tedchs 12y ago
Interesting...point about using pointers to get nullable JSON values. Especially important for booleans, where false is the default value, and would not show up if "omitempty" is specified on that JSON field. Demo here: http://play.golang.org/p/K3sG6T2wDd http://play.golang.org/p/K3sG6T2wDd