Skip to content

Commit b9f9822

Browse files
authored
Merge pull request #1 from abk-code/abk-golang
variables related stuff
2 parents 9e2be86 + 4031f76 commit b9f9822

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)