Say I have a struct
type MyStruct struct {
  string `json:",inline"`
  int `json:"omitempty"`
}

Is there any way to utilize the JSON tags to omit the empty fields when I 
call a function like 
fmt.Sprintf("%#v",s)
where s is an instance of my struct?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5437be04-2f3b-4cae-a65e-a8b97986de7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to