피연산자

피연산자는 식에서 기본적인 값을 나타낸다. 피연산자로 리터럴, 상수를 나타내는 blank 식별자가 아닌 식별자 (한정적 식별자도 가능), 변수, 함수, 결괏값이 함수인 메서드 식, 괄호로 묶은 식을 사용할 수 있다.

blank 식별자는 할당 문의 좌측에서만 피연산자로 나타날 수 있다.

Operand     = Literal | OperandName | MethodExpr | "(" Expression ")" .
Literal     = BasicLit | CompositeLit | FunctionLit .
BasicLit    = int_lit | float_lit | imaginary_lit | rune_lit | string_lit .
OperandName = identifier | QualifiedIdent.

results matching ""

    No results matching ""