26 lines
483 B
Go
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()
|
|
}
|