Skip to content

Add new field "accessor" to schema #164

@sahidvelji

Description

@sahidvelji

The name/key of the flag does not always make for a good variable name. Allow the user to optionally specify what the generated variable name should be for a flag using an "accessor" field in the flag manifest. An example is the hypothetical flag named "enable-api". In Go, this will generate a variable called EnableApi, which does not follow Go's initialism conventions: I would want to name it EnableAPI instead.

var {{ .Key | ToPascal }} = struct {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions