miller/pkg/input
Stephen Kitt f0a7c5832f
Performance and style fixes (#1981)
* Switch to integer ranges in for loops

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to slices functions where appropriate

A number of utility functions can be replaced outright; since Miller
can technically be used as a library, these are deprecated rather than
removed. go:fix directives ensure that they can be replaced
automatically.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to reflect.TypeFor

This is slightly more efficient than TypeOf when the type is known at
compile time.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to strings.SplitSeq instead of strings.Split

SplitSeq results in fewer allocations.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Drop obsolete build directives

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Use min/max instead of explicit comparisons

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Append slices instead of looping

Signed-off-by: Stephen Kitt <steve@sk2.org>

---------

Signed-off-by: Stephen Kitt <steve@sk2.org>
2026-02-18 09:19:31 -05:00
..
constants.go Separate out ILineReader abstraction (#1504) 2024-02-24 22:07:56 -05:00
doc.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
line_reader.go Replace list.List with Go slices (#1950) 2026-02-01 17:22:28 -05:00
pseudo_reader_gen.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
README.md Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
record_reader.go Replace list.List with Go slices (#1950) 2026-02-01 17:22:28 -05:00
record_reader_benchmark_test.go Replace list.List with Go slices (#1950) 2026-02-01 17:22:28 -05:00
record_reader_csv.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
record_reader_csvlite.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
record_reader_dcf.go Add DCF (Debian Control Format) as supported file type (#1970) 2026-02-16 11:10:39 -05:00
record_reader_dkvp_nidx.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
record_reader_dkvp_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
record_reader_factory.go Add DCF (Debian Control Format) as supported file type (#1970) 2026-02-16 11:10:39 -05:00
record_reader_json.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
record_reader_markdown.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
record_reader_pprint.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
record_reader_tsv.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
record_reader_xtab.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
record_reader_yaml.go Support YAML I/O (#1963) 2026-02-15 09:24:38 -05:00
splitters.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00

Logic for parsing disk-file/standard-input byte streams into records.

There is one record-reader type per supported input file format, and a factory method.