json icon indicating copy to clipboard operation
json copied to clipboard

How to set empty []

Open surjit opened this issue 3 years ago • 1 comments

Is it possible to set empty [], currently it shows null? Something like Text []Text `json:"text" default:"value,[]"` or better way

I just want to set default value when value is nil

Thanks,

surjit avatar Oct 04 '22 01:10 surjit

Hmm if u still want it i can implement that feature, also check my fork of this repo(updated to 1.19 go)

mrredo avatar Nov 13 '22 13:11 mrredo