fix: coding style and file format.

This commit is contained in:
Bo-Yi Wu
2017-02-10 16:33:02 +08:00
parent 0c9c21e518
commit b27e4d2435
5 changed files with 88 additions and 84 deletions

View File

@@ -1,18 +1,19 @@
package main
var a string // global scope
func main() {
a = "G"
print(a)
f1()
}
func f1() {
a := "O" // new local variable a, only scoped within f1() !
print(a)
f2()
}
func f2() {
print(a) // global variable is taken
}
// GOG
package main
var a string // global scope
func main() {
a = "G"
print(a)
f1()
}
func f1() {
a := "O" // new local variable a, only scoped within f1() !
print(a)
f2()
}
func f2() {
print(a) // global variable is taken
}
// GOG