Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FieldDecl (0.15 sec)

  1. doc/go1.17_spec.html

    Within a struct, non-<a href="#Blank_identifier">blank</a> field names must
    be <a href="#Uniqueness_of_identifiers">unique</a>.
    </p>
    
    <pre class="ebnf">
    StructType    = "struct" "{" { FieldDecl ";" } "}" .
    FieldDecl     = (IdentifierList Type | EmbeddedField) [ Tag ] .
    EmbeddedField = [ "*" ] TypeName .
    Tag           = string_lit .
    </pre>
    
    <pre>
    // An empty struct.
    struct {}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    Within a struct, non-<a href="#Blank_identifier">blank</a> field names must
    be <a href="#Uniqueness_of_identifiers">unique</a>.
    </p>
    
    <pre class="ebnf">
    StructType    = "struct" "{" { FieldDecl ";" } "}" .
    FieldDecl     = (IdentifierList Type | EmbeddedField) [ Tag ] .
    EmbeddedField = [ "*" ] TypeName [ TypeArgs ] .
    Tag           = string_lit .
    </pre>
    
    <pre>
    // An empty struct.
    struct {}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top