Skip to content

Commit d7243e2

Browse files
committed
Ders 09
1 parent 2f5084c commit d7243e2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

09_scope/main.go

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package main
2+
3+
import "fmt"
4+
5+
/* var packVar = "Package Scope"
6+
var funcVar = "Func(Package) Scope" */
7+
8+
func main() {
9+
10+
/* if true {
11+
var blockVar = "Block Scope"
12+
fmt.Println(blockVar)
13+
} */
14+
15+
var name = "Arin"
16+
name, surname := "Elis", "Software"
17+
fmt.Println(name, surname)
18+
19+
/* fmt.Println(packVar)
20+
21+
myFunc() */
22+
23+
}
24+
25+
/* func myFunc() {
26+
fmt.Println(funcVar)
27+
}
28+
*/

0 commit comments

Comments
 (0)