···11+package main
22+33+type Test struct {
44+ ID int
55+ Name string
66+ Num int64
77+ Cost int
88+ Thingy []string
99+ Testing int
1010+ Another struct {
1111+ First int
1212+ Second string
1313+ }
1414+}
+14
spec/fixtures/tags/add_range_output.go
···11+package main
22+33+type Test struct {
44+ ID int
55+ Name string `gopher:"name"`
66+ Num int64 `gopher:"num"`
77+ Cost int `gopher:"cost"`
88+ Thingy []string
99+ Testing int
1010+ Another struct {
1111+ First int
1212+ Second string
1313+ }
1414+}
+14
spec/fixtures/tags/remove_range_input.go
···11+package main
22+33+type Test struct {
44+ ID int `asdf:"id"`
55+ Name string `asdf:"name"`
66+ Num int64 `asdf:"num"`
77+ Cost int `asdf:"cost"`
88+ Thingy []string `asdf:"thingy"`
99+ Testing int `asdf:"testing"`
1010+ Another struct {
1111+ First int `asdf:"first"`
1212+ Second string `asdf:"second"`
1313+ } `asdf:"another"`
1414+}
+14
spec/fixtures/tags/remove_range_output.go
···11+package main
22+33+type Test struct {
44+ ID int `asdf:"id"`
55+ Name string `asdf:"name"`
66+ Num int64
77+ Cost int
88+ Thingy []string
99+ Testing int `asdf:"testing"`
1010+ Another struct {
1111+ First int `asdf:"first"`
1212+ Second string `asdf:"second"`
1313+ } `asdf:"another"`
1414+}
+18
spec/integration/struct_tags_test.lua
···7878 t.cleanup(rs)
7979end
80808181+struct_tags["should add tag with range"] = function()
8282+ local rs = t.setup_test("tags/add_range", child, { 5, 1 })
8383+ child.cmd ".,+2GoTagAdd gopher"
8484+ child.cmd "write"
8585+8686+ t.eq(t.readfile(rs.tmp), rs.fixtures.output)
8787+ t.cleanup(rs)
8888+end
8989+9090+struct_tags["should remove tag with range"] = function()
9191+ local rs = t.setup_test("tags/remove_range", child, { 6, 1 })
9292+ child.cmd ".,+2GoTagRm asdf"
9393+ child.cmd "write"
9494+9595+ t.eq(t.readfile(rs.tmp), rs.fixtures.output)
9696+ t.cleanup(rs)
9797+end
9898+8199return T