File: test.go.in

package info (click to toggle)
gocode 0~git20140530-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 760 kB
  • ctags: 492
  • sloc: lisp: 212; tcl: 60; python: 55; sh: 50; ruby: 46; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main

func main() {
	var a, b int
	add := a + b
	sub := a - b
	mul := a * b
	div := a / b
	or  := a | b
	xor := a ^ b
	rem := a % b
	shr := a >> uint(b)
	shl := a << uint(b)
	and := a & b
	andnot := a &^ b

	eq := a == b
	neq := a != b
	less := a < b
	leq := a <= b
	greater := a > b
	geq := a >= b

	var c, d bool
	logor := c || d
	logand := c && d
	
}