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 { |