What is the proposed style for indenting a raw string literal? If I indent it based on its first line, it might not align properly in editors that have a different tab length. For example:
if select == nil {
select, err = db.Prepare(`select name
from table
where id=$1`)
if err != nil {
return nil, err
}
}
I have found this question, but I am still unclear: Best practice for long string literals in Go
Should I do it like below?
if select == nil {
select, err = db.Prepare(`
select name
from table
where id=$1`)
if err != nil {
return nil, err
}
}