Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for pairs (0.13 sec)

  1. doc/go_mem.html

    This means that races on multiword data structures
    can lead to inconsistent values not corresponding to a single write.
    When the values depend on the consistency
    of internal (pointer, length) or (pointer, type) pairs,
    as can be the case for interface values, maps,
    slices, and strings in most Go implementations,
    such races can in turn lead to arbitrary memory corruption.
    </p>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    <pre class="grammar">
    "var" IdentifierList = ExpressionList .
    </pre>
    
    <pre>
    i, j := 0, 10
    f := func() int { return 7 }
    ch := make(chan int)
    r, w, _ := os.Pipe()  // os.Pipe() returns a connected pair of Files and an error, if any
    _, y, _ := coord(p)   // coord() returns three values; only interested in y coordinate
    </pre>
    
    <p>
    Unlike regular variable declarations, a short variable declaration may <i>redeclare</i>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    corresponding type parameters have corresponding constraints.
    </p>
    
    <pre>
    type Pair[A, B any] struct {
    	a A
    	b B
    }
    
    func (p Pair[A, B]) Swap() Pair[B, A]  { … }  // receiver declares A, B
    func (p Pair[First, _]) First() First  { … }  // receiver declares First, corresponds to A in Pair
    </pre>
    
    <h2 id="Expressions">Expressions</h2>
    
    <p>
    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