Skip to content

Commit

Permalink
Use encoding.TextMarshaler instead of our deprecated alias
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed May 29, 2022
1 parent dcb2346 commit 8fccf3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func (md *MetaData) unifyText(data interface{}, v encoding.TextUnmarshaler) erro
return err
}
s = string(text)
case TextMarshaler:
case encoding.TextMarshaler:
text, err := sdata.MarshalText()
if err != nil {
return err
Expand Down

0 comments on commit 8fccf3c

Please sign in to comment.