A struct field of type bool which points to false is triggering the "omitempty" behavior even though it's not a nil pointer. This is not the zero value of the bool type, so it shouldn't cause the field to be omitted (this is a trick to get "false" to show up in output, but still be able to leave the field out entirely).
A struct field of type bool which points to false is triggering the "omitempty" behavior even though it's not a nil pointer. This is not the zero value of the bool type, so it shouldn't cause the field to be omitted (this is a trick to get "false" to show up in output, but still be able to leave the field out entirely).