Skip to content

Commit

Permalink
generate code for []byte
Browse files Browse the repository at this point in the history
  • Loading branch information
jirfag committed Aug 12, 2018
1 parent cb86bdf commit 7510503
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions queryset/field/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ func (g InfoGenerator) GenFieldInfo(f Field) *Info {
return &Info{
BaseInfo: bi,
}
case *types.Slice:
if t.Elem().String() == "byte" {
return &Info{
BaseInfo: bi,
}
}
return nil
case *types.Named:
r := g.GenFieldInfo(field{
name: f.Name(),
Expand Down

0 comments on commit 7510503

Please sign in to comment.