Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

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

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

    Fields

    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