Before

…lines 1–5 unchanged (5 lines)
6 "errors"
7 "os"
8 "path/filepath"
9 "slices"
10 "sync"
11
12 "github.com/containers/common/pkg/cgroups"
13 libctrcgroups "github.com/opencontainers/cgroups"
14)
15
16var (
17 cgroupHasMemorySwapOnce sync.Once
18 cgroupHasMemorySwap bool
19 cgroupHasMemorySwapErr error
20
…lines 21–119 unchanged (99 lines)

After

…lines 1–4 unchanged (4 lines)
5import (
6 "errors"
7 "os"
8 "path/filepath"
9 "slices"
10 "sync"
11
12 libctrcgroups "github.com/opencontainers/cgroups"
13 "go.podman.io/common/pkg/cgroups"
14)
15
16var (
17 cgroupHasMemorySwapOnce sync.Once
18 cgroupHasMemorySwap bool
19 cgroupHasMemorySwapErr error
…lines 20–119 unchanged (100 lines)

Before

source_file
comment "//go:build linux"
package_clause
package "package"
package_identifier "node"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "errors"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "os"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "path/filepath"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "slices"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "sync"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/containers/common/pkg/cgroups"
" "\""
import_spec
package_identifier "libctrcgroups"
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/opencontainers/cgroups"
" "\""
) ")"
var_declaration (+35 nodes collapsed)
function_declaration (+35 nodes collapsed)
comment "// CgroupHasMemorySwap returns whether the memory swap contr"...
function_declaration (+220 nodes collapsed)
comment "// CgroupHasHugetlb returns whether the hugetlb controller i"...
function_declaration (+21 nodes collapsed)
comment "// CgroupHasPid returns whether the pid controller is presen"...
function_declaration (+21 nodes collapsed)
function_declaration (+179 nodes collapsed)

After

source_file
comment "//go:build linux"
package_clause
package "package"
package_identifier "node"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "errors"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "os"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "path/filepath"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "slices"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "sync"
" "\""
import_spec
package_identifier "libctrcgroups"
interpreted_string_literal
" "\""
interpreted_string_literal_content "github.com/opencontainers/cgroups"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "go.podman.io/common/pkg/cgroups"
" "\""
) ")"
var_declaration (+35 nodes collapsed)
function_declaration (+35 nodes collapsed)
comment "// CgroupHasMemorySwap returns whether the memory swap contr"...
function_declaration (+220 nodes collapsed)
comment "// CgroupHasHugetlb returns whether the hugetlb controller i"...
function_declaration (+21 nodes collapsed)
comment "// CgroupHasPid returns whether the pid controller is presen"...
function_declaration (+21 nodes collapsed)
function_declaration (+179 nodes collapsed)