From 72293d415531a6783f1321d807fa876949db071a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 14 Jan 2024 00:12:27 +0300 Subject: [PATCH] hello there func --- functions/demo1.go | 11 +++++++++++ main.go | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 functions/demo1.go diff --git a/functions/demo1.go b/functions/demo1.go new file mode 100644 index 0000000..bc39f82 --- /dev/null +++ b/functions/demo1.go @@ -0,0 +1,11 @@ +package functions + +import "fmt" + +func Addition() { + +} + +func SayHello() { + fmt.Println("Hello There !") +} diff --git a/main.go b/main.go index 0d4aa74..b86af4a 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "fmt" "golesson/arrays" "golesson/conditionals" + "golesson/functions" "golesson/loops" "golesson/slices" "golesson/variables" @@ -16,4 +17,5 @@ func main() { loops.Demo5() arrays.Demo4() slices.Demo2() + functions.SayHello() }