gitee.com/quant1x/num@v0.3.2/shape_test.go (about)

     1  package num
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func Test___slice_shape_go(t *testing.T) {
     9  	fmt.Println(__go_slice_shape[int](0))
    10  	fmt.Println(__go_slice_shape[int]([]int{1, 2, 3}))
    11  	fmt.Println(__go_slice_shape[int]([][]int{{1, 2, 3}, {4, 5, 6}}))
    12  }