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

1package main
2
3import (
4 "net/http"
5 "reflect"
6 "time"
7
8 "github.com/gin-gonic/gin"
9 "github.com/gin-gonic/gin/binding"
10 validator "gopkg.in/go-playground/validator.v8"
11)
12
13type Booking struct {
14 CheckIn time.Time `form:"check_in" binding:"required,bookabledate" time_format:"2006-01-02"`
15 CheckOut time.Time `form:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02"`
16}
…lines 17–46 unchanged (30 lines)

After

1package main
2
3import (
4 "net/http"
5 "reflect"
6 "time"
7
8 "github.com/gin-gonic/gin"
9 "github.com/gin-gonic/gin/binding"
10 "gopkg.in/go-playground/validator.v8"
11)
12
13type Booking struct {
14 CheckIn time.Time `form:"check_in" binding:"required,bookabledate" time_format:"2006-01-02"`
15 CheckOut time.Time `form:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02"`
16}
…lines 17–46 unchanged (30 lines)

Before

source_file
package_clause
package "package"
package_identifier "main"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "net/http"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "reflect"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "time"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/gin-gonic/gin"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/gin-gonic/gin/binding"
" "\""
import_spec
package_identifier "validator"
interpreted_string_literal
" "\""
interpreted_string_literal_content "gopkg.in/go-playground/validator.v8"
" "\""
) ")"
type_declaration (+29 nodes collapsed)
function_declaration (+155 nodes collapsed)
function_declaration (+69 nodes collapsed)
function_declaration (+132 nodes collapsed)

After

source_file
package_clause
package "package"
package_identifier "main"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "net/http"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "reflect"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "time"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/gin-gonic/gin"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/gin-gonic/gin/binding"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "gopkg.in/go-playground/validator.v8"
" "\""
) ")"
type_declaration (+29 nodes collapsed)
function_declaration (+155 nodes collapsed)
function_declaration (+69 nodes collapsed)
function_declaration (+132 nodes collapsed)