init
This commit is contained in:
commit
d0979fe24b
|
@ -0,0 +1 @@
|
|||
.idea/
|
|
@ -0,0 +1,22 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
// This is the map we want to sort
|
||||
m := make(map[int]string)
|
||||
m[0] = "first"
|
||||
m[1] = "second"
|
||||
m[2] = "third"
|
||||
m[3] = "fourth"
|
||||
m[4] = "fifth"
|
||||
m[5] = "sixth"
|
||||
m[6] = "seventh"
|
||||
m[7] = "eighth"
|
||||
m[8] = "nineth"
|
||||
m[9] = "tenth"
|
||||
|
||||
for index, msg := range m {
|
||||
fmt.Println(index, ": ", msg)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue