Initial commit
This commit is contained in:
16
first/explain/expressions/01-operator/main.go
Normal file
16
first/explain/expressions/01-operator/main.go
Normal file
@ -0,0 +1,16 @@
|
||||
// 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!" + "!")
|
||||
}
|
18
first/explain/expressions/02-call-expression/main.go
Normal file
18
first/explain/expressions/02-call-expression/main.go
Normal file
@ -0,0 +1,18 @@
|
||||
// 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"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// runtime.NumCPU() is a call expression
|
||||
fmt.Println(runtime.NumCPU() + 1)
|
||||
}
|
3
first/explain/expressions/README
Normal file
3
first/explain/expressions/README
Normal file
@ -0,0 +1,3 @@
|
||||
I've moved the main.go file for the expressions coding lecture into:
|
||||
|
||||
02-call-expression/
|
Reference in New Issue
Block a user