Skip to content

Commit 4031f76

Browse files
committed
variables related stuff
1 parent 9e2be86 commit 4031f76

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import "fmt"
4+
5+
6+
// var keyword
7+
var y = 9.99
8+
9+
func main() {
10+
// Short delcation operator
11+
x := 44.5
12+
13+
fmt.Println(x)
14+
15+
foo()
16+
}
17+
18+
func foo() {
19+
fmt.Println("in foo",y)
20+
}
21+

0 commit comments

Comments
 (0)