(opt string)
| 136 | } |
| 137 | |
| 138 | func omitEmpty(opt string) bool { |
| 139 | for opt != "" { |
| 140 | var name string |
| 141 | name, opt, _ = strings.Cut(opt, ",") |
| 142 | if name == "omitempty" { |
| 143 | return true |
| 144 | } |
| 145 | } |
| 146 | return false |
| 147 | } |
| 148 | |
| 149 | func isEmptyValue(v reflect.Value) bool { |
| 150 | switch v.Kind() { |