Go Concepts - Operators: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 34: Line 34:
=[]=
=[]=


Indexing Operator.
"<tt>[]</tt>" is the ''indexing operator''.


Applies to:
Applies to:

Revision as of 01:20, 23 March 2016

External

Internal

+

Addition

-

Subtraction

*

Multiplication

/

Division

%

Remainder

=

The assignment operator.

==

[]

"[]" is the indexing operator.

Applies to:

:=

Variable declaration and assignment. Also known as short variable declaration operator.

<-