You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am working with go-flag which uses tags of structs to work. Some of them can be repeated with the same key. However, when I used golines to format, it left only one tag and removed others.
Reproduce
Source code
package main
typeTestTypestruct {
Argstring`choice:"ab" choice:"b"`
}
funcmain() {}
And run command
golines ./main.go
Output
package main
typeTestTypestruct {
Argstring`choice:"ab"`
}
funcmain() {}
Format with gofmt
package main
typeTestTypestruct {
Argstring`choice:"ab" choice:"b"`
}
funcmain() {}
The text was updated successfully, but these errors were encountered:
Hi. I am working with go-flag which uses tags of structs to work. Some of them can be repeated with the same key. However, when I used golines to format, it left only one tag and removed others.
Reproduce
Source code
And run command
Output
Format with gofmt
The text was updated successfully, but these errors were encountered: