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