Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Struct (0.23 sec)

  1. doc/go_mem.html

    (accessed with “<code>go</code> <code>build</code> <code>-race</code>”)
    do exactly this.
    </p>
    
    <p>
    A read of an array, struct, or complex number
    may by implemented as a read of each individual sub-value
    (array element, struct field, or real/imaginary component),
    in any order.
    Similarly, a write of an array, struct, or complex number
    may be implemented as a write of each individual sub-value,
    in any order.
    </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

    	</li>
    </ul>
    
    <p>
    <a href="#Struct_types">Struct tags</a> are ignored when comparing struct types
    for identity for the purpose of conversion:
    </p>
    
    <pre>
    type Person struct {
    	Name    string
    	Address *struct {
    		Street string
    		City   string
    	}
    }
    
    var data *struct {
    	Name    string `json:"name"`
    	Address *struct {
    		Street string `json:"street"`
    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/asm.html

    </p>
    
    <p>
    Field offsets are of the form <code><i>type</i>_<i>field</i></code>.
    Struct sizes are of the form <code><i>type</i>__size</code>.
    For example, consider the following Go definition:
    </p>
    
    <pre>
    type reader struct {
    	buf [bufSize]byte
    	r   int
    }
    </pre>
    
    <p>
    Assembly can refer to the size of this struct
    as <code>reader__size</code> and the offsets of the two fields
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  4. doc/go_spec.html

    	T2 struct{ f [10]T2 }      // T2 contains T2 as component of an array
    	T3 struct{ T4 }            // T3 contains T3 as component of an array in struct T4
    	T4 struct{ f [10]T3 }      // T4 contains T4 as component of struct T3 in an array
    )
    
    // valid struct types
    type (
    	T5 struct{ f *T5 }         // T5 contains T5 as component of a pointer
    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