Skip to content

Go: Add yaml struct tags #812

@joeblubaugh

Description

@joeblubaugh

Cog generates types with json struct tags:

type GeneratedStruct struct {
  FieldOne int `json:"fieldOne"`
}

Several popular Go yaml libraries need yaml tags set as well to serialize and deserialize correctly. It would be nice to add those to the generated code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions