github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/x/ptrx/ptrx_z_example_test.go (about)

     1  package ptrx_test
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/machinefi/w3bstream/pkg/depends/x/ptrx"
     7  )
     8  
     9  func Example() {
    10  	fmt.Println(*(ptrx.Int(10)))
    11  	fmt.Println(*(ptrx.Float64(10)))
    12  	fmt.Println(*(ptrx.String("abc")))
    13  
    14  	// Output:
    15  	// 10
    16  	// 10
    17  	// abc
    18  }