miller/cmd/sizes/main.go
Adam Lesperance 085e831668
The package version must match the major tag version (#1654)
* Update package version

* Update makefile targets

* Update readme packages

* Remaining old packages via rg/sd
2024-09-20 12:10:11 -04:00

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()
}