Skip to content

Support iterator generation for methods returning structs #3989

@Not-Dhananjay-Mishra

Description

@Not-Dhananjay-Mishra

gen-iterators.go currently does not generate iterators for methods that return a struct, even when those methods accept ListOptions or ListCursorOptions.

Example:

type ListSomething struct {
    Issue []Struct `json:"Issue"`
}

If a method: Accepts ListOptions or ListCursorOptions and Returns a struct that contains a slice field,
then gen-iterators.go should be able to make iterator for it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions