We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 025a91f commit a8415d3Copy full SHA for a8415d3
format/format.go
@@ -217,6 +217,7 @@ func (f *fumpter) inlineComment(pos token.Pos) *ast.Comment {
217
func (f *fumpter) addNewline(at token.Pos) {
218
offset := f.Offset(at)
219
220
+ // TODO: replace with the new Lines method once we require Go 1.21 or later
221
field := reflect.ValueOf(f.File).Elem().FieldByName("lines")
222
n := field.Len()
223
lines := make([]int, 0, n+1)
0 commit comments