-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathtagliatelle.go
33 lines (28 loc) · 1.01 KB
/
tagliatelle.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// args: -Etagliatelle
package testdata
import "time"
type TglFoo struct {
ID string `json:"ID"` // ERROR `json\(camel\): got 'ID' want 'id'`
UserID string `json:"UserID"` // ERROR `json\(camel\): got 'UserID' want 'userId'`
Name string `json:"name"`
Value time.Duration `json:"value,omitempty"`
Bar TglBar `json:"bar"`
Bur `json:"bur"`
}
type TglBar struct {
Name string `json:"-"`
Value string `json:"value"`
CommonServiceFooItem *TglBir `json:"CommonServiceItem,omitempty"` // ERROR `json\(camel\): got 'CommonServiceItem' want 'commonServiceItem'`
}
type TglBir struct {
Name string `json:"-"`
Value string `json:"value"`
ReplaceAllowList []string `mapstructure:"replace-allow-list"`
}
type Bur struct {
Name string
Value string `yaml:"Value"` // ERROR `yaml\(camel\): got 'Value' want 'value'`
More string `json:"-"`
Also string `json:"also,omitempty"`
ReqPerS string `avro:"req_per_s"`
}