diff --git a/main.go b/main.go index 7d73145..0d4aa74 100644 --- a/main.go +++ b/main.go @@ -15,5 +15,5 @@ func main() { conditionals.Demo3() loops.Demo5() arrays.Demo4() - slices.Demo1() + slices.Demo2() } diff --git a/slices/demo2.go b/slices/demo2.go new file mode 100644 index 0000000..b21d1c3 --- /dev/null +++ b/slices/demo2.go @@ -0,0 +1,8 @@ +package slices + +import "fmt" + +func Demo2() { + cities := []string{"Ankara", "İstanbul", "İzmir"} // same as make + fmt.Println(cities) +} \ No newline at end of file