Skip to content

bug: do not format escaped quotes as in default:"[\"a\"]"Β #161

@gabyx

Description

@gabyx

Go lines removes escapes as in:

struct A {
a []string `yaml:"a" default:"[\"RS512\", \"RSA-OAEP\"]"`
}

to

struct A {
a []string `yaml:"a" default:"["RS512", "RSA-OAEP"]"`
}

which is wrong.

Note: You can disable formatting tags with --no-reformat-tags

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions