github.com/nozzle/golangci-lint@v1.49.0-nz3/test/testdata/tagliatelle.go (about) 1 //golangcitest:args -Etagliatelle 2 package testdata 3 4 import "time" 5 6 type TglFoo struct { 7 ID string `json:"ID"` // want `json\(camel\): got 'ID' want 'id'` 8 UserID string `json:"UserID"` // want `json\(camel\): got 'UserID' want 'userId'` 9 Name string `json:"name"` 10 Value time.Duration `json:"value,omitempty"` 11 Bar TglBar `json:"bar"` 12 Bur `json:"bur"` 13 } 14 15 type TglBar struct { 16 Name string `json:"-"` 17 Value string `json:"value"` 18 CommonServiceFooItem *TglBir `json:"CommonServiceItem,omitempty"` // want `json\(camel\): got 'CommonServiceItem' want 'commonServiceItem'` 19 } 20 21 type TglBir struct { 22 Name string `json:"-"` 23 Value string `json:"value"` 24 ReplaceAllowList []string `mapstructure:"replace-allow-list"` 25 } 26 27 type Bur struct { 28 Name string 29 Value string `yaml:"Value"` // want `yaml\(camel\): got 'Value' want 'value'` 30 More string `json:"-"` 31 Also string `json:"also,omitempty"` 32 ReqPerS string `avro:"req_per_s"` 33 }