mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 17:04:50 +00:00
* 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
17 lines
294 B
Go
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])
|
|
}
|
|
}
|