<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of October 23, 2017",
+ "Subtitle": "Version of October 25, 2017",
"Path": "/ref/spec"
}-->
<a href="#Constant_declarations">constant</a>,
<a href="#Variable_declarations">variable</a>, or
<a href="#Function_declarations">function</a>,
-a <a href="#Method_expressions">method expression</a> yielding a function,
or a parenthesized expression.
</p>
</p>
<pre class="ebnf">
-Operand = Literal | OperandName | MethodExpr | "(" Expression ")" .
+Operand = Literal | OperandName | "(" Expression ")" .
Literal = BasicLit | CompositeLit | FunctionLit .
BasicLit = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
OperandName = identifier | QualifiedIdent.
PrimaryExpr =
Operand |
Conversion |
+ MethodExpr |
PrimaryExpr Selector |
PrimaryExpr Index |
PrimaryExpr Slice |
<pre class="ebnf">
MethodExpr = ReceiverType "." MethodName .
-ReceiverType = TypeName | "(" "*" TypeName ")" | "(" ReceiverType ")" .
+ReceiverType = Type .
</pre>
<p>