miller/cmd/scan/main.go
John Kerl 5eb40c9e7b
Multiple style updates (#1974)
* Comment style

* IRecordTransformer -> RecordTransfomer

* make fmt

* else-return style mod

* snake-case -> camel-case

* Remove redundant err = nil and similar zero-value initializations.

* redundant break;

* bugfix

* neaten

* typofix

* simplify/standardize init of zero-length slices

* Standardize fmt.Fprintf w/ errors

* fix double print of "mlr:"

* neatening

* Uniformize error messages

* make docs

* avoid shadowing package names

* shorten some receiver names
2026-02-16 15:49:21 -05:00

17 lines
294 B
Go

// Experiments for type-inference performance optimization
package main
import (
"fmt"
"os"
"github.com/johnkerl/miller/v6/pkg/scan"
)
func main() {
for _, arg := range os.Args[1:] {
scanType := scan.FindScanType(arg)
fmt.Printf("%-10s -> %s\n", arg, scan.TypeNames[scanType])
}
}