On Thu, Jun 6, 2019 at 7:48 AM Iago Santos <iagosantospa...@gmail.com> wrote:
>
> Hi,
>
> I have the following code: https://pastebin.com/hAbnPV3C
>
> What I am trying to do in the line 347 is to get the first item of an 
> interface map[string]map[string]string, in any case I as not able to get it.
> The result of the line 345 is : Searching in loopQueue the volume:  
> {map[pvc18aa0:map[pvcGroupID:adc2fde0 pvcNamespace:cephfs]]}

How do you get it? And what happens when you do?

If the type is correct, you should be able to:

mm:=vv.(map[string]map[string]string)
for k,v:=range mm {
   // Here k should be pvc18aa0 and v should be
map[pvcGroupID:adc2fde0 pvcNamespace:cephfs]
}

>
> And I would like to get the results "pvc18aa0" "pvcGroupID:adc2fde0" and 
> "cephfs"
>
> The summary of this code is the following: I am watching persistentVolumes in 
> openshift, when I get the new persistenVolume I want to store it in a job 
> queue to do something with it, and that is why I need those values.
>
> Any help is appreciate it.
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/176c964d-c58e-422a-bd4a-a8af348d9ca0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMV2Rqpo51pxOzeuLAAPxn-NF62w7bYZUCj26LXk-zZFjS3MLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to