Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for 2014 (0.08 sec)

  1. src/reflect/all_test.go

    	{S3{}, "B", nil, 0},
    	{S3{D: 'd'}, "D", []int{2}, 0},
    	{S3{E: 'e'}, "E", []int{3}, 'e'},
    	{S4{A: 'a'}, "A", []int{1}, 'a'},
    	{S4{}, "B", nil, 0},
    	{S5{}, "X", nil, 0},
    	{S5{}, "Y", []int{2, 0, 1}, 0},
    	{S10{}, "X", nil, 0},
    	{S10{}, "Y", []int{2, 0, 0, 1}, 0},
    	{S14{}, "X", nil, 0},
    }
    
    func TestFieldByIndex(t *testing.T) {
    	for _, test := range fieldTests {
    		s := TypeOf(test.s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </p>
    
    <p>
    If the operands of these functions are all constants, the return
    value is a constant.
    </p>
    
    <pre>
    var a = complex(2, -2)             // complex128
    const b = complex(1.0, -1.4)       // untyped complex constant 1 - 1.4i
    x := float32(math.Cos(math.Pi/2))  // float32
    var c64 = complex(5, -x)           // complex64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top