key and value printed
This commit is contained in:
parent
92f7c99f08
commit
3a84e5fd98
2 changed files with 13 additions and 0 deletions
12
examplerange/demo3.go
Normal file
12
examplerange/demo3.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package examplerange
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Demo3() {
|
||||
my_dictionary:= map[string]string{"book":"kitap", "table":"masa"}
|
||||
|
||||
for k,v := range my_dictionary {
|
||||
fmt.Println(k)
|
||||
fmt.Println(v)
|
||||
}
|
||||
}
|
1
main.go
1
main.go
|
@ -42,4 +42,5 @@ func main() {
|
|||
maps.Demo1()
|
||||
examplerange.Demo1()
|
||||
examplerange.Demo2()
|
||||
examplerange.Demo3()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue