Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for form (0.17 sec)

  1. doc/go1.17_spec.html

    <h4 id="For_condition">For statements with single condition</h4>
    
    <p>
    In its simplest form, a "for" statement specifies the repeated execution of
    a block as long as a boolean condition evaluates to true.
    The condition is evaluated before each iteration.
    If the condition is absent, it is equivalent to the boolean value
    <code>true</code>.
    </p>
    
    <pre>
    for a &lt; b {
    	a *= 2
    }
    </pre>
    
    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)
  2. doc/go_spec.html

    The key is interpreted as a field name for struct literals,
    an index for array and slice literals, and a key for map literals.
    For map literals, all elements must have a key. It is an error
    to specify multiple elements with the same field name or
    constant key value. For non-constant map keys, see the section on
    <a href="#Order_of_evaluation">evaluation order</a>.
    </p>
    
    <p>
    For struct literals the following rules apply:
    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