-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slice of structs TextUnmarshaler. (#103)
Fix handling of situation where a slice of structs implments the encoding.TextUnmarshaler interface, previously it would return "invalid path" error. Includes, some minor refactoring and documentation to clarify `isUnmarshaler` output.
- Loading branch information
Showing
4 changed files
with
122 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -415,6 +415,5 @@ func TestRegisterEncoderCustomArrayType(t *testing.T) { | |
}) | ||
|
||
encoder.Encode(s, vals) | ||
t.Log(vals) | ||
} | ||
} |