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
  • #14623
Closed
Open
Issue created Feb 05, 2023 by Administrator@rootContributor

[REQ] [Go] Export Util isNil function

Created by: gcatanese

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

The function isNil generated in utils.go is not exported outside the package (unlike all other functions in the same file). This is a problem if you want to generate the model in a sub-directory: the generated models do not have access to the function.

Describe the solution you'd like

Export the function by renaming it to IsNil

Describe alternatives you've considered

At the moment you need to customise the template or the generated code locally.

Assignee
Assign to
Time tracking