Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for name (0.14 sec)

  1. doc/go1.22.html

          In general, identifiers cannot be accurately resolved without type information.
          Consider, for example, the identifier <code>K</code>
          in <code>T{K: ""}</code>: it could be the name of a local variable
          if T is a map type, or the name of a field if T is a struct type.
    
          New programs should use the <a href='/pkg/go/types'>go/types</a>
          package to resolve identifiers; see
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    struct {
    	T1        // field name is T1
    	*T2       // field name is T2
    	P.T3      // field name is T3
    	*P.T4     // field name is T4
    	x, y int  // field names are x and y
    }
    </pre>
    
    <p>
    The following declaration is illegal because field names must be unique
    in a struct type:
    </p>
    
    <pre>
    struct {
    	T     // conflicts with embedded field *T and *P.T
    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)
  3. doc/go1.17_spec.html

    struct {
    	T1        // field name is T1
    	*T2       // field name is T2
    	P.T3      // field name is T3
    	*P.T4     // field name is T4
    	x, y int  // field names are x and y
    }
    </pre>
    
    <p>
    The following declaration is illegal because field names must be unique
    in a struct type:
    </p>
    
    <pre>
    struct {
    	T     // conflicts with embedded field *T and *P.T
    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)
Back to top