Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for padding (0.43 sec)

  1. doc/go1.17_spec.html

    EmbeddedField = [ "*" ] TypeName .
    Tag           = string_lit .
    </pre>
    
    <pre>
    // An empty struct.
    struct {}
    
    // A struct with 6 fields.
    struct {
    	x, y int
    	u float32
    	_ float32  // padding
    	A *[]int
    	F func()
    }
    </pre>
    
    <p>
    A field declared with a type but no explicit field name is called an <i>embedded field</i>.
    An embedded field must be specified as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top