Go Concepts - Operators: Difference between revisions
Jump to navigation
Jump to search
(→[]) |
(→[]) |
||
Line 37: | Line 37: | ||
Applies to: | Applies to: | ||
* [[Go Strings# | * [[Go Strings#Indexing_Operator|strings]] | ||
* arrays | * arrays | ||
Revision as of 01:36, 23 March 2016
External
- Go Specification - Operators: https://golang.org/ref/spec#Operators
Internal
+
Addition
-
Subtraction
*
Multiplication
/
Division
%
Remainder
=
The assignment operator.
==
[]
"[]" is the indexing operator.
Applies to:
- strings
- arrays
:=
Variable declaration and assignment. Also known as short variable declaration operator.