Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1// Copyright 2022 Gin Core Team. All rights reserved.
2// Use of this source code is governed by a MIT style
3// license that can be found in the LICENSE file.
4
5//go:build !go1.18
6// +build !go1.18
7
…lines 8–11 unchanged (4 lines)

After

1// Copyright 2022 Gin Core Team. All rights reserved.
2// Use of this source code is governed by a MIT style
3// license that can be found in the LICENSE file.
4
5//go:build !go1.18
6// +build !go1.18
7
…lines 8–11 unchanged (4 lines)

Before

source_file
comment "// Copyright 2022 Gin Core Team. All rights reserved."
comment "// Use of this source code is governed by a MIT style"
comment "// license that can be found in the LICENSE file."
comment "//go:build !go1.18"
comment "// +build !go1.18"
package_clause
package "package"
package_identifier "gin"
type_declaration
type "type"
type_alias
type_identifier "any"
= "="
interface_type
interface "interface"
{ "{"
} "}"

After

source_file
comment "// Copyright 2022 Gin Core Team. All rights reserved."
comment "// Use of this source code is governed by a MIT style"
comment "// license that can be found in the LICENSE file."
comment "//go:build !go1.18"
comment "// +build !go1.18"
package_clause
package "package"
package_identifier "gin"
type_declaration
type "type"
type_alias
type_identifier "any"
= "="
interface_type
interface "interface"
{ "{"
} "}"