key and value printed
This commit is contained in:
parent
92f7c99f08
commit
3a84e5fd98
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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user