Skip to content

Commit 89161d5

Browse files
author
Jamie Tanna
committed
Lint: Exclude unexported fields for structcheck
As we've added them on purpose, to show that they don't get (un)marshalled.
1 parent eb22ac3 commit 89161d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bindform_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestBindURLForm(t *testing.T) {
2929
OptStruct *testSubStruct `json:"opt_struct,omitempty"`
3030
OptStructSlice *[]testSubStruct `json:"opt_struct_slice,omitempty"`
3131
NotSerializable int `json:"-"`
32-
unexported int
32+
unexported int //nolint:unused
3333
}
3434

3535
testCases := map[string]testStruct{
@@ -137,7 +137,7 @@ func TestMarshalForm(t *testing.T) {
137137
OptStruct *testSubStruct `json:"opt_struct,omitempty"`
138138
OptStructSlice *[]testSubStruct `json:"opt_struct_slice,omitempty"`
139139
NotSerializable int `json:"-"`
140-
unexported int
140+
unexported int //nolint:unused
141141
}
142142

143143
testCases := map[string]testStruct{

0 commit comments

Comments
 (0)