Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Testing (0.15 sec)

  1. doc/go_spec.html

    x[i], i = 2, 1  // set x[0] = 2, i = 1
    
    x[0], x[0] = 1, 2  // set x[0] = 1, then x[0] = 2 (so x[0] == 2 at end)
    
    x[1], x[3] = 4, 5  // set x[1] = 4, then panic setting x[3] = 5.
    
    type Point struct { x, y int }
    var p *Point
    x[2], p.x = 6, 7  // set x[2] = 6, then panic setting p.x = 7
    
    i = 2
    x = []int{3, 5, 7}
    for i, x[i] = range x {  // set i, x[2] = 0, x[0]
    	break
    }
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top