Open
Description
golines removes "escaped" slashes
// bug.go
package bug
type Struct10 struct {
Field2 int
MyStruct any `json:"field" validate:"\\d+"`
}
Output of golines bug.go
:
// bug.go
package bug
type Struct10 struct {
Field2 int
MyStruct any `json:"field" validate:"\d+"`
}
Expected output (look at validate tag value):
// bug.go
package bug
type Struct10 struct {
Field2 int
MyStruct any `json:"field" validate:"\\d+"`
}
Metadata
Metadata
Assignees
Labels
No labels