This commit is contained in:
2023-11-07 14:46:30 +01:00
parent e8da61d1ee
commit 66c618efb3
2 changed files with 117 additions and 0 deletions

26
Section6/67/main.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import (
"fmt"
f "fmt"
)
// import "fmt" //error reimporting same
const done = false //package scoped
func main() {
var task = "Running" //local (block) scoped
fmt.Println(task, done)
const done = true //local scoped
f.Printf("done in main() is %v\n", done)
f1()
f.Println("Bye!")
}
func f1() {
fmt.Printf("done in f1(): %v\n", done) //this isdone from package scope
}