Skip to content

Commit 2b8f166

Browse files
committed
Update README (#41)
1 parent edcddc1 commit 2b8f166

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,22 @@ b, c := 5, 6
5454
d, e := divisionWithRemainder(5, 2)
5555
```
5656

57+
### Constants
58+
```golang
59+
// Constant definition.
60+
const a = 0
61+
const b, c = 1, 2
62+
```
63+
64+
```golang
65+
// constant definition via grouping.
66+
const (
67+
a = -1
68+
b = iota
69+
c
70+
)
71+
```
72+
5773
### Control flow
5874
```golang
5975
// If-statement.

0 commit comments

Comments
 (0)