Skip to content

[REQ] [go-server] Move the EncodeJSONResponse to helpers.go #10912

@sagikazarmark

Description

@sagikazarmark

Is your feature request related to a problem? Please describe.

EncodeJSONResponse is currently in routers.go, but it's not even used in that file.

Personally, I don't use the routers feature provided by the generator, so I'd like to delete this file, but I can't because there is a function in it used by other code in the package.

Describe the solution you'd like

Move EncodeJSONResponse to helpers.go: it's a much better place for such a function.

Describe alternatives you've considered

Move the EncodeJSONResponse to its own file, but I don't think that's necessary.

Additional context

Happy to provide a PR if we can agree to the above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions