refactor: 6th section first two lectures exercises and questions
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
// 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: Undeclarables
|
||||
//
|
||||
// 1. Declare the variables below:
|
||||
// 3speed
|
||||
// !speed
|
||||
// spe?ed
|
||||
// var
|
||||
// func
|
||||
// package
|
||||
//
|
||||
// 2. Observe the error messages
|
||||
//
|
||||
// NOTE
|
||||
// The types of the variables are not important.
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
// var ? int
|
||||
// var ? int
|
||||
// var ? int
|
||||
// var ? int
|
||||
// var ? int
|
||||
// var ? int
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
// 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
|
||||
|
||||
func main() {
|
||||
// var 3speed int
|
||||
// var !speed int
|
||||
// var spe?ed int
|
||||
// var var int
|
||||
// var func int
|
||||
// var package int
|
||||
}
|
Reference in New Issue
Block a user