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
package main
type Foo struct {
Bar []string `parameter:"BAR" delimiter:"\n"`
}
golines will output the following invalid go code.
package main
type Foo struct {
Bar []string `param:"CLIENT" delimiter:"
"`
}
Interestingly removing the first tag part will make golines output correctly formated code.
package main
type Foo struct {
Bar []string `delimiter:"\n"`
}
outputs
package main
type Foo struct {
Bar []string `delimiter:"\n"`
}
The text was updated successfully, but these errors were encountered:
EricIO
changed the title
golines may output invalid Go code when \n is present in a struct tag.
golines may output invalid code when \n is present in a struct tag.
May 28, 2024
For the input
golines will output the following invalid go code.
Interestingly removing the first tag part will make golines output correctly formated code.
outputs
The text was updated successfully, but these errors were encountered: