Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2796
Closed
Open
Issue created May 02, 2019 by Administrator@rootContributor

[REQ][Golang][client] Add go.mod to go client templates

Created by: bkabrda

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

I need to use the autogenerated go client as a dependency of another go module, which is much easier when it's a module as well.

Describe the solution you'd like

I'd like the go client templates to also contain go.mod/go.sum files that would be rendered (not sure if this should be by default, but it probably wouldn't hurt). To do that, the go config file would also need to contain the full module name, e.g. "github.com/user/mymodule".

Describe alternatives you've considered

I could maintain these files by hand outside of openapi-generator functionality.

Additional context

This seems to be a simple enough modification that I would probably be able to send a PR myself, but first I'd like to hear if it's wanted/acceptable.

Assignee
Assign to
Time tracking