test: add for struct_tags
This commit is contained in:
parent
04e1af228b
commit
149e89eab4
5 changed files with 100 additions and 0 deletions
11
spec/fixtures/tags/add_input.go
vendored
Normal file
11
spec/fixtures/tags/add_input.go
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
type Test struct {
|
||||
ID int
|
||||
Name string
|
||||
Num int64
|
||||
Another struct {
|
||||
First int
|
||||
Second string
|
||||
}
|
||||
}
|
||||
11
spec/fixtures/tags/add_output.go
vendored
Normal file
11
spec/fixtures/tags/add_output.go
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
type Test struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Num int64 `json:"num"`
|
||||
Another struct {
|
||||
First int `json:"first"`
|
||||
Second string `json:"second"`
|
||||
} `json:"another"`
|
||||
}
|
||||
11
spec/fixtures/tags/remove_input.go
vendored
Normal file
11
spec/fixtures/tags/remove_input.go
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
type Test struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Num int64 `json:"num"`
|
||||
Another struct {
|
||||
First int `json:"first"`
|
||||
Second string `json:"second"`
|
||||
} `json:"another"`
|
||||
}
|
||||
11
spec/fixtures/tags/remove_output.go
vendored
Normal file
11
spec/fixtures/tags/remove_output.go
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
type Test struct {
|
||||
ID int
|
||||
Name string
|
||||
Num int64
|
||||
Another struct {
|
||||
First int
|
||||
Second string
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue