mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
* Update package version * Update makefile targets * Update readme packages * Remaining old packages via rg/sd
24 lines
520 B
Go
24 lines
520 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()
|
|
}
|