Files
learngo/03-packages-and-scopes/03-importing/01-file-scope/bye.go

19 lines
462 B
Go
Raw Normal View History

2018-10-13 23:30:21 +03:00
// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
// Uncomment below code to see the error
// (Just remove the // characters for all 3 lines below)
// This file cannot see main.go's imported names ("fmt").
2018-11-18 05:03:43 +08:00
// Because the imported names belong to file scope.
2018-10-13 23:30:21 +03:00
// func bye() {
// fmt.Println("Bye!")
// }