Go is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. It is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency.
package main import "fmt" func main() { fmt.Println("Hello World") }
Operator | Description |
---|---|
+ |
addition |
- |
subtraction |
* |
multiplication |
/ |
quotient |
% |
remainder |
& |
bitwise and |
| |
bitwise or |
^ |
bitwise xor |
&^ |
bit clear (and not) |
<< |
left shift |
>> |
right shift |
Operator | Description |
---|---|
== |
equal |
!= |
not equal |
< |
less than |
<= |
less than or equal |
> |
greater than |
>= |
greater than or equal |
Operator | Description |
---|---|
&& |
logical and |
|| |
logical or |
! |
logical not |
Operator | Description |
---|---|
& |
address of / create pointer |
* |
dereference pointer |
<- |
send / receive operator (see 'Channels' below) |