mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-25 00:48:56 +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
22 lines
384 B
Go
22 lines
384 B
Go
// Experiments for type-inference performance optimization
|
|
|
|
/*
|
|
go build github.com/johnkerl/miller/v6/cmd/sizes
|
|
*/
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/johnkerl/miller/v6/pkg/mlrval"
|
|
)
|
|
|
|
func main() {
|
|
var mvs [2]mlrval.Mlrval
|
|
mvs[0] = *mlrval.FromString("h")
|
|
mvs[1] = *mlrval.FromString("abcdefghijklmnopqrstuvwzyx")
|
|
mvs[0].ShowSizes()
|
|
fmt.Println()
|
|
mvs[1].ShowSizes()
|
|
}
|