refactor: exercises for the first 4 sections
This commit is contained in:
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Use your own package
|
||||
//
|
||||
// Create a few Go files and call their functions from
|
||||
// the main function.
|
||||
//
|
||||
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Try the scopes
|
||||
//
|
||||
// 1. Create two files: main.go and printer.go
|
||||
//
|
||||
// 2. In printer.go:
|
||||
@ -24,9 +25,6 @@ package main
|
||||
// 4. In printer.go:
|
||||
// 1. Call the bye function from
|
||||
// inside the hello function
|
||||
//
|
||||
// 5. In main.go:
|
||||
// 1.
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
|
@ -8,7 +8,8 @@
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// EXERCISE
|
||||
// EXERCISE: Rename imports
|
||||
//
|
||||
// 1- Import fmt package three times with different names
|
||||
//
|
||||
// 2- Print a few messages using those imports
|
||||
|
Reference in New Issue
Block a user