Before

…lines 1–8 unchanged (8 lines)
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14//go:build !notextfile
15// +build !notextfile
16
17package collector
18
19import (
20 "fmt"
21 "log/slog"
…lines 22–329 unchanged (308 lines)

After

…lines 1–8 unchanged (8 lines)
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14//go:build !notextfile
15
16package collector
17
18import (
19 "fmt"
20 "log/slog"
21 "os"
…lines 22–328 unchanged (307 lines)

Before

source_file
comment "// Copyright 2015 The Prometheus Authors"
comment "// Licensed under the Apache License, Version 2.0 (the \"Lice"...
comment "// you may not use this file except in compliance with the L"...
comment "// You may obtain a copy of the License at"
comment "//"
comment "// http://www.apache.org/licenses/LICENSE-2.0"
comment "//"
comment "// Unless required by applicable law or agreed to in writing"...
comment "// distributed under the License is distributed on an \"AS IS"...
comment "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expr"...
comment "// See the License for the specific language governing permi"...
comment "// limitations under the License."
comment "//go:build !notextfile"
comment "// +build !notextfile"
package_clause
package "package"
package_identifier "collector"
import_declaration (+71 nodes collapsed)
var_declaration (+81 nodes collapsed)
type_declaration (+29 nodes collapsed)
function_declaration (+24 nodes collapsed)
comment "// NewTextFileCollector returns a new Collector exposing met"...
comment "// in the given textfile directory."
function_declaration (+60 nodes collapsed)
function_declaration (+848 nodes collapsed)
method_declaration (+200 nodes collapsed)
comment "// Update implements the Collector interface."
method_declaration (+989 nodes collapsed)
comment "// processFile processes a single file, returning its modifi"...
method_declaration (+306 nodes collapsed)
comment "// hasTimestamps returns true when metrics contain unsupport"...
function_declaration (+76 nodes collapsed)

After

source_file
comment "// Copyright 2015 The Prometheus Authors"
comment "// Licensed under the Apache License, Version 2.0 (the \"Lice"...
comment "// you may not use this file except in compliance with the L"...
comment "// You may obtain a copy of the License at"
comment "//"
comment "// http://www.apache.org/licenses/LICENSE-2.0"
comment "//"
comment "// Unless required by applicable law or agreed to in writing"...
comment "// distributed under the License is distributed on an \"AS IS"...
comment "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expr"...
comment "// See the License for the specific language governing permi"...
comment "// limitations under the License."
comment "//go:build !notextfile"
package_clause
package "package"
package_identifier "collector"
import_declaration (+71 nodes collapsed)
var_declaration (+81 nodes collapsed)
type_declaration (+29 nodes collapsed)
function_declaration (+24 nodes collapsed)
comment "// NewTextFileCollector returns a new Collector exposing met"...
comment "// in the given textfile directory."
function_declaration (+60 nodes collapsed)
function_declaration (+848 nodes collapsed)
method_declaration (+200 nodes collapsed)
comment "// Update implements the Collector interface."
method_declaration (+989 nodes collapsed)
comment "// processFile processes a single file, returning its modifi"...
method_declaration (+306 nodes collapsed)
comment "// hasTimestamps returns true when metrics contain unsupport"...
function_declaration (+76 nodes collapsed)