Eilheart
11-02-2021, 06:48 AM
Hi!
That is my map code:
map[CreateStudyPlan:map[...] GetStudyPlan:map[...]]
Iterate over it like this
for key, _ := range steps.(map[interface {}]interface {}) {
fmt.Println(key)
}
The problem I'm running into is that sometimes the order of the printed values is changed and instead of:
CreateStudyPlan
GetStudyPlan
I get this:
GetStudyPlan
CreateStudyPlan
Is it possible to do something about this?
That is my map code:
map[CreateStudyPlan:map[...] GetStudyPlan:map[...]]
Iterate over it like this
for key, _ := range steps.(map[interface {}]interface {}) {
fmt.Println(key)
}
The problem I'm running into is that sometimes the order of the printed values is changed and instead of:
CreateStudyPlan
GetStudyPlan
I get this:
GetStudyPlan
CreateStudyPlan
Is it possible to do something about this?