Skip to content

Commit

Permalink
support two-dimensional array (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
idersec authored Apr 19, 2023
1 parent e9e31a7 commit 323c766
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (p *Param) astGetEltType(expr ast.Expr) {
p.astGetEltType(v.X)
case *ast.InterfaceType:
p.Type = "interface{}"
case *ast.ArrayType:
p.astGetEltType(v.Elt)
p.Type = "[]" + p.Type
default:
log.Fatalf("unknow param type: %+v", v)
}
Expand Down

0 comments on commit 323c766

Please sign in to comment.