Initial commit
This commit is contained in:
22
first/explain/statements/01-execution-flow/main.go
Normal file
22
first/explain/statements/01-execution-flow/main.go
Normal file
@ -0,0 +1,22 @@
|
||||
// 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!")
|
||||
|
||||
// Statements change the execution flow
|
||||
// Especially the control flow statements like `if`
|
||||
if 5 > 1 {
|
||||
fmt.Println("bigger")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user