hello there func
This commit is contained in:
parent
f148fa9c3e
commit
72293d4155
2 changed files with 13 additions and 0 deletions
11
functions/demo1.go
Normal file
11
functions/demo1.go
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
package functions
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func Addition() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func SayHello() {
|
||||||
|
fmt.Println("Hello There !")
|
||||||
|
}
|
2
main.go
2
main.go
|
@ -4,6 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"golesson/arrays"
|
"golesson/arrays"
|
||||||
"golesson/conditionals"
|
"golesson/conditionals"
|
||||||
|
"golesson/functions"
|
||||||
"golesson/loops"
|
"golesson/loops"
|
||||||
"golesson/slices"
|
"golesson/slices"
|
||||||
"golesson/variables"
|
"golesson/variables"
|
||||||
|
@ -16,4 +17,5 @@ func main() {
|
||||||
loops.Demo5()
|
loops.Demo5()
|
||||||
arrays.Demo4()
|
arrays.Demo4()
|
||||||
slices.Demo2()
|
slices.Demo2()
|
||||||
|
functions.SayHello()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue