Hi,

I reported your code into the playground for testing, and it seems to be
working fine for me: https://play.golang.com/p/udsRN-iUQM8
I designed a simple AuthCtx struct based on your example but that should
not change anything.

Maybe it would be easier to help with more details. Why do you say you
*can't* delete? What happens when you try to? What problem are you trying
to solve?

Le ven. 19 nov. 2021 à 16:17, Van Fury <furyva...@gmail.com> a écrit :

> Hi
>
> I have a map as shown below
>
> var CtxStarStore = make(map[string]AuthCtx)
>
> map[ccc-999401002:{989c48c5-7f9c-4058-80a2-b769ea4675f9 imei-1234010002}
> bbb-999401003:{989c48c5-7f9c-4058-80a2-b769ea4675f9 imei-1234010003}]
>
> I would like to delete ccc-999401002  or any key value from the map I
> tried delete as
> s := "ccc-999401002"
>
> delete(CtxStarStore, s)
>
> Any reason why I cannot delete it
>
> --
> 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/5a863263-94cd-463e-b932-2d788985a108n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/5a863263-94cd-463e-b932-2d788985a108n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAL4P9zxLV0wXaf9j-H0%2B9mLoKU0o-L0z2q0gTJP7ccYQib%3DJyw%40mail.gmail.com.

Reply via email to