Skip to content

Commit

Permalink
feat: support output multi fields path and pos
Browse files Browse the repository at this point in the history
  • Loading branch information
22dm committed Apr 6, 2024
1 parent f7b81b8 commit a3bd974
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions testdata/src/tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,22 +165,6 @@ func ignoredNestedType() {
json.Marshal(&Foo{}) // no error
}

func ignoredNestedTypeWithSubsequentNoTagField() {
type Nested struct {
NoTag string
}
type Foo struct {
Ignored Nested `json:"-"`
Exported string `json:"exported"`
NoTag string
}
var foo Foo
json.Marshal(foo) // want "the given struct should be annotated with the `json` tag"
json.Marshal(&foo) // want "the given struct should be annotated with the `json` tag"
json.Marshal(Foo{}) // want "the given struct should be annotated with the `json` tag"
json.Marshal(&Foo{}) // want "the given struct should be annotated with the `json` tag"
}

func interfaceSliceType() {
type WithMarshallableSlice struct {
List []Marshaler `json:"marshallable"`
Expand Down

0 comments on commit a3bd974

Please sign in to comment.