refactor: 6th section first two lectures exercises and questions
This commit is contained in:
24
06-variables/02-declarations/exercises/09-unused/main.go
Normal file
24
06-variables/02-declarations/exercises/09-unused/main.go
Normal file
@ -0,0 +1,24 @@
|
||||
// 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: Unused
|
||||
//
|
||||
// 1. Declare a variable
|
||||
//
|
||||
// 2. Variable's name should be: isLiquid
|
||||
//
|
||||
// 3. Discard it using a blank-identifier
|
||||
//
|
||||
// NOTE
|
||||
// Do not print the variable
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
// 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 isLiquid bool
|
||||
_ = isLiquid
|
||||
}
|
Reference in New Issue
Block a user