Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for variant (0.2 sec)

  1. doc/go_mem.html

    be observed by <code>main</code>, since there are no synchronization
    events between the two threads.  The loop in <code>main</code> is not
    guaranteed to finish.
    </p>
    
    <p>
    There are subtler variants on this theme, such as this program.
    </p>
    
    <pre>
    type T struct {
    	msg string
    }
    
    var g *T
    
    func setup() {
    	t := new(T)
    	t.msg = "hello, world"
    	g = t
    }
    
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </p>
    
    
    <h3 id="Slice_expressions">Slice expressions</h3>
    
    <p>
    Slice expressions construct a substring or slice from a string, array, pointer
    to array, or slice. There are two variants: a simple form that specifies a low
    and high bound, and a full form that also specifies a bound on the capacity.
    </p>
    
    <h4>Simple slice expressions</h4>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    by automatic tools such as integrated development environments.
    </p>
    
    <h2 id="Notation">Notation</h2>
    <p>
    The syntax is specified using a
    <a href="https://en.wikipedia.org/wiki/Wirth_syntax_notation">variant</a>
    of Extended Backus-Naur Form (EBNF):
    </p>
    
    <pre class="grammar">
    Syntax      = { Production } .
    Production  = production_name "=" [ Expression ] "." .
    Expression  = Term { "|" Term } .
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 279.3K bytes
    - Viewed (0)
Back to top