Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for TypeName (0.06 sec)

  1. src/cmd/api/main_test.go

    			w.emitf("var %s //deprecated", obj.Name())
    		}
    		w.emitf("var %s %s", obj.Name(), w.typeString(obj.Type()))
    	case *types.TypeName:
    		w.emitType(obj)
    	case *types.Func:
    		w.emitFunc(obj)
    	default:
    		panic("unknown object: " + obj.String())
    	}
    }
    
    func (w *Walker) emitType(obj *types.TypeName) {
    	name := obj.Name()
    	if w.isDeprecated(obj) {
    		w.emitf("type %s //deprecated", name)
    	}
    	typ := obj.Type()
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    to those values. A type may be denoted by a <i>type name</i>, if it has one,
    or specified using a <i>type literal</i>, which composes a type from existing types.
    </p>
    
    <pre class="ebnf">
    Type      = TypeName | TypeLit | "(" Type ")" .
    TypeName  = identifier | QualifiedIdent .
    TypeLit   = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
    	    SliceType | MapType | ChannelType .
    </pre>
    
    <p>
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. doc/go_spec.html

    A type may also be specified using a <i>type literal</i>, which composes a type
    from existing types.
    </p>
    
    <pre class="ebnf">
    Type      = TypeName [ TypeArgs ] | TypeLit | "(" Type ")" .
    TypeName  = identifier | QualifiedIdent .
    TypeArgs  = "[" TypeList [ "," ] "]" .
    TypeList  = Type { "," Type } .
    TypeLit   = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
    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