Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

generate pointer functions for required types #28

Description

@jbowes

For types used in options, and eventually in PATCH calls (#17), oag should generated functions that return a pointer of the supplied value, if required.

For example, if an options struct has a *string type as a field, oag should generate a function like:

// String returns a pointer to the supplied string value
func String(v string) *string { return &v}

This way, users of the generated API can easily get pointers to literal values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions