Login
From:
Posts on Orso Labs
(Uncensored)
subscribe
Default values in JSON with Golang
https://www.orsolabs.com/post/go-json-default-values/
links
backlinks
How to handle JSON fields with a default value different from the Go zero value (example: a bool with default value true), avoiding the inconveniences of pointers.
Roast topics
Find topics
Find it!