File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ //golangcitest:args -Etagalign
2
+ //golangcitest:config_path testdata/configs/tagalign_strict.yml
3
+ //golangcitest:expected_exitcode 0
4
+ package p
5
+
6
+ import "time"
7
+
8
+ type TagAlignExampleStrictKO struct {
9
+ Foo time.Time `json:"foo,omitempty" validate:"required" zip:"foo"`
10
+ FooBar struct {} `gorm:"column:fooBar" validate:"required" zip:"fooBar" xml:"fooBar" json:"fooBar,omitempty" yaml:"fooBar"`
11
+ }
Original file line number Diff line number Diff line change
1
+ //golangcitest:args -Etagalign
2
+ //golangcitest:config_path testdata/configs/tagalign_strict.yml
3
+ //golangcitest:expected_exitcode 0
4
+ package p
5
+
6
+ import "time"
7
+
8
+ type TagAlignExampleStrictKO struct {
9
+ Foo time.Time ` json:"foo,omitempty" validate:"required" zip:"foo"`
10
+ FooBar struct {} `gorm:"column:fooBar" json:"fooBar,omitempty" validate:"required" xml:"fooBar" yaml:"fooBar" zip:"fooBar"`
11
+ }
You can’t perform that action at this time.
0 commit comments