Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 21 of 21 for 345 (0.33 sec)

  1. doc/go_spec.html

    i := 0
    i, x[i] = 1, 2  // set i = 1, x[0] = 2
    
    i = 0
    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}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top