Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix handling of an []*string field
  • Loading branch information
brianolson committed Jul 31, 2024
commit 57553c5f50f6e6263e927b5800ce83854f0ea41a
7 changes: 4 additions & 3 deletions gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,10 @@ func (g Gen) emitCborUnmarshalSliceField(w io.Writer, f Field) error {

case reflect.String:
subf := Field{
Type: e,
Pkg: f.Pkg,
Name: f.Name + "[" + f.IterLabel + "]",
Type: e,
Pkg: f.Pkg,
Pointer: pointer,
Name: f.Name + "[" + f.IterLabel + "]",
}
err := g.emitCborUnmarshalStringField(w, subf)
if err != nil {
Expand Down