Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for Changed (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. doc/go_spec.html

    s2[0] = 42                     // setting s2[0] changes s1[0] as well
    fmt.Println(s1, s2)            // prints [42] [42 2 3]
    
    var m1 = make(map[string]int)
    var m2 = m1                    // m2 stores the map descriptor of m1
    m1["foo"] = 42                 // setting m1["foo"] changes m2["foo"] as well
    fmt.Println(m2["foo"])         // prints 42
    </pre>
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
Back to Top