Files
learngo/03-packages-and-scopes/01-packages/main.go
2018-11-18 00:03:43 +03:00

26 lines
483 B
Go

// 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
import "fmt"
func main() {
fmt.Println("Hello!")
// You can access functions from other files
// which are in the same package
// Here, `main()` can access `bye()` and `hey()`
// It's because bye.go, hey.go and main.go
// are in the main package.
bye()
hey()
}