32 lines
763 B
Go
32 lines
763 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
|
|
|
|
// ---------------------------------------------------------
|
|
// EXERCISE: Use your own package
|
|
//
|
|
// Create a few Go files and call their functions from
|
|
// the main function.
|
|
//
|
|
// 1- Create main.go, greet.go and bye.go files
|
|
// 2- In main.go: Call greet and bye functions.
|
|
// 3- Run `main.go`
|
|
//
|
|
// HINT
|
|
// greet function should be in greet.go
|
|
// bye function should be in bye.go
|
|
//
|
|
// EXPECTED OUTPUT
|
|
// hi there
|
|
// goodbye
|
|
// ---------------------------------------------------------
|
|
|
|
func main() {
|
|
// call functions of the other files here
|
|
}
|