-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Handle omitzero in structfield linter
#3881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7454100
9be5c0b
c3eb5ce
e6ec5c6
4000936
0ac2a9b
21a8006
9e93909
2624e99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,8 +27,20 @@ type JSONFieldType struct { | |
| Exception string `json:"exception,omitempty"` | ||
| Value any `json:"value,omitempty"` | ||
| SliceOfPointerStructs []*Struct `json:"slice_of_pointer_structs,omitempty"` | ||
| SliceOfZerosStructs []*Struct `json:"slice_of_zeros_structs,omitzero"` | ||
| SliceOfBothOmitTags []*Struct `json:"slice_of_both_omit_tags,omitempty,omitzero"` | ||
|
|
||
| SliceOfStrings []string `json:"slice_of_strings,omitzero"` | ||
| SliceOfPointerInts []*int `json:"slice_of_pointer_ints,omitzero"` | ||
| MapOfStringToInt map[string]int `json:"map_of_string_to_int,omitzero"` | ||
| MapOfPointerStringToInt *map[string]int `json:"map_of_pointer_string_to_int,omitzero"` | ||
| StructField Struct `json:"struct_field,omitzero"` | ||
|
||
| PointerStructField *Struct `json:"pointer_struct_field,omitzero"` | ||
| SliceOfPointerStructsZero []*Struct `json:"slice_of_pointer_structs_zero,omitzero"` | ||
| SliceOfNonPointerStructsZero []Struct `json:"slice_of_non_pointer_structs_zero,omitzero"` | ||
|
|
||
| SliceOfStringsBoth []string `json:"slice_of_strings_both,omitzero,omitempty"` | ||
| MapOfStringToIntBoth map[string]int `json:"map_of_string_to_int_both,omitzero,omitempty"` | ||
| SliceOfPointerStructsBoth []*Struct `json:"slice_of_pointer_structs_both,omitzero,omitempty"` | ||
| StructFieldBoth *Struct `json:"struct_field_both,omitzero,omitempty"` | ||
| } | ||
|
|
||
| type URLFieldName struct { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.